Use always the latest available nix stable

This commit is contained in:
Sandro 2022-03-10 11:32:58 +01:00 committed by GitHub
parent 24200651a1
commit 883b5e7ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ python3.pkgs.buildPythonApplication rec {
glibcLocales
mypy
# technically not a test input, but we need it for development in PATH
pkgs.nixVersions.nix_2_4 or nix_2_4
pkgs.nixVersions.stable or nix_2_4
nix-prefetch
];
checkPhase = ''
@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
mypy --no-warn-unused-ignores --strict nix_update tests
'';
makeWrapperArgs = [
"--prefix PATH" ":" (lib.makeBinPath [ pkgs.nixVersions.nix_2_4 or nix_2_4 nix-prefetch nixpkgs-fmt nixpkgs-review ])
"--prefix PATH" ":" (lib.makeBinPath [ pkgs.nixVersions.stable or nix_2_4 nix-prefetch nixpkgs-fmt nixpkgs-review ])
];
shellHook = ''
# workaround because `python setup.py develop` breaks for me