cli: fallback to bundled Nixpkgs

This commit is contained in:
Michael Hoang
2025-04-25 11:11:51 +10:00
parent 7100277599
commit 2f95d2edf2
2 changed files with 16 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ let
rm -f $out/clan_cli/nixpkgs
substituteInPlace $out/clan_cli/flake.py \
--replace-fail '@fallback_nixpkgs_hash@' "$(jq -r '.nodes.nixpkgs.locked.narHash' ${nixpkgs'}/flake.lock)" \
--replace-fail '@select_hash@' "$(jq -r '.nodes."nix-select".locked.narHash' ${../../flake.lock})"
ln -sf ${nixpkgs'} $out/clan_cli/nixpkgs
ln -sf ${nix-select} $out/clan_cli/select