From 858ff8dd010deded3b9cab8e04fbfad20151af5c Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 29 Nov 2024 10:24:21 +0100 Subject: [PATCH] chore(.nix): Don't use url litteral when fetching nixpkgs --- .nix/nixpkgs.nix | 2 +- .nix/shellHook.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.nix/nixpkgs.nix b/.nix/nixpkgs.nix index 256e0b14..316cd335 100644 --- a/.nix/nixpkgs.nix +++ b/.nix/nixpkgs.nix @@ -1,4 +1,4 @@ fetchTarball { - url = https://github.com/NixOS/nixpkgs/archive/14d8890fb9edffcfe0aaa296ffc44547c7be04ab.tar.gz; + url = "https://github.com/NixOS/nixpkgs/archive/14d8890fb9edffcfe0aaa296ffc44547c7be04ab.tar.gz"; sha256 = "0zy5dav7mqlkx9vg1dvd1889nglnc4pws58r5pcwm9mn8qnh2r8r"; } diff --git a/.nix/shellHook.sh b/.nix/shellHook.sh index 05fafeea..892058a9 100644 --- a/.nix/shellHook.sh +++ b/.nix/shellHook.sh @@ -79,7 +79,7 @@ updateNixpkgsUnstable (){ SHA256=$(nix-prefetch-url --unpack $URL) mkdir -p $configDir echo "fetchTarball { - url = $URL; + url = \"$URL\"; sha256 = \"$SHA256\"; }" > $configDir/nixpkgs.nix } @@ -91,7 +91,7 @@ updateNixpkgsMaster (){ SHA256=$(nix-prefetch-url --unpack $URL) mkdir -p $configDir echo "fetchTarball { - url = $URL; + url = \"$URL\"; sha256 = \"$SHA256\"; }" > $configDir/nixpkgs.nix } @@ -105,7 +105,7 @@ updateNixpkgs (){ SHA256=$(nix-prefetch-url --unpack $URL) mkdir -p $configDir echo "fetchTarball { - url = $URL; + url = \"$URL\"; sha256 = \"$SHA256\"; }" > $configDir/nixpkgs.nix else