try to use a single nixpkgs in each job

This commit is contained in:
Jean-Paul Calderone 2022-01-27 13:59:37 -05:00
parent dea4c7e131
commit 013e1810e4
2 changed files with 6 additions and 3 deletions

View File

@ -456,9 +456,11 @@ jobs:
- "checkout"
- "run":
name: "Generation version"
command: |
command: >-
# The Nix package doesn't know how to do this part, unfortunately.
nix-shell .circleci/python.nix --run 'python setup.py update_version'
nix-shell .circleci/python.nix
--argstr pkgsVersion "$NIXPKGS"
--run 'python setup.py update_version'
- "run":
name: "Build and Test"

View File

@ -2,7 +2,8 @@
let
sources = import ../nix/sources.nix;
in
{ pkgs ? import sources."nixpkgs-21.11" { }
{ pkgsVersion
, pkgs ? import sources.${pkgsVersion} { }
}:
pkgs.mkShell {
buildInputs = [