mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Fixes scripts/update-flake
Avoid using BASE64 characters for separating substitution patterns.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user