mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-15 13:07:49 +00:00
flake: Follow package Nix version in dev shell
This commit is contained in:
parent
1bd0279b79
commit
89cefcd501
2 changed files with 5 additions and 1 deletions
|
@ -109,6 +109,10 @@ let
|
||||||
maintainers = with maintainers; [ zhaofengli ];
|
maintainers = with maintainers; [ zhaofengli ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit nix;
|
||||||
|
};
|
||||||
} // args // extraArgs);
|
} // args // extraArgs);
|
||||||
|
|
||||||
attic = mkAttic {
|
attic = mkAttic {
|
||||||
|
|
|
@ -97,7 +97,7 @@ in
|
||||||
NIX_PATH = "nixpkgs=${pkgs.path}";
|
NIX_PATH = "nixpkgs=${pkgs.path}";
|
||||||
|
|
||||||
# See comment in `attic/build.rs`
|
# 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.
|
# Used by `just with-nix` to build/test with alternative Nix versions.
|
||||||
NIX_VERSIONS = config.attic.nix-versions.manifestFile;
|
NIX_VERSIONS = config.attic.nix-versions.manifestFile;
|
||||||
|
|
Loading…
Add table
Reference in a new issue