From 18ef797f41ad30f10f470c0ed89e2a383790d3a9 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Mon, 4 Mar 2024 11:31:42 +0100 Subject: [PATCH] Fixes scripts/update-flake Avoid using BASE64 characters for separating substitution patterns. --- scripts/update-flake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-flake b/scripts/update-flake index 65acbb172..6bd90986a 100755 --- a/scripts/update-flake +++ b/scripts/update-flake @@ -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"