1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

flake: Follow package Nix version in dev shell

This commit is contained in:
Zhaofeng Li 2024-09-11 10:57:59 -04:00
parent 1bd0279b79
commit 89cefcd501
2 changed files with 5 additions and 1 deletions

View file

@ -109,6 +109,10 @@ let
maintainers = with maintainers; [ zhaofengli ];
platforms = platforms.linux ++ platforms.darwin;
};
passthru = {
inherit nix;
};
} // args // extraArgs);
attic = mkAttic {

View file

@ -97,7 +97,7 @@ in
NIX_PATH = "nixpkgs=${pkgs.path}";
# See comment in `attic/build.rs`
NIX_INCLUDE_PATH = "${lib.getDev pkgs.nixVersions.nix_2_24}/include";
NIX_INCLUDE_PATH = "${lib.getDev self'.packages.attic.passthru.nix}/include";
# Used by `just with-nix` to build/test with alternative Nix versions.
NIX_VERSIONS = config.attic.nix-versions.manifestFile;