Fixes scripts/update-flake

Avoid using BASE64 characters for separating substitution patterns.
This commit is contained in:
Michael Raitza
2024-03-04 16:01:48 +01:00
committed by Rūdolfs Ošiņš
parent 4bb0e72841
commit 18ef797f41
+1 -1
View File
@@ -64,7 +64,7 @@ if [ -e "$root/flake.nix" ]; then
npmDepsHash=$(nix --experimental-features 'nix-command flakes' \
run --inputs-from "$root" nixpkgs#prefetch-npm-deps \
-- "$root/package-lock.json")
sed -E -e '/npmDepsHash/s/".*"/"'"$npmDepsHash"'"/' "$root/flake.nix" >$root/flake.nix.tmp
sed -E -e '/npmDepsHash/s#".*"#"'"$npmDepsHash"'"#' "$root/flake.nix" >$root/flake.nix.tmp
mv "$root/flake.nix.tmp" "$root/flake.nix"
nix --experimental-features 'nix-command flakes' flake update "$root"