use pinned nixpkgs-unstable for the test driver

This commit is contained in:
Erik Arvstedt
2020-01-15 23:14:04 +00:00
committed by Jonas Nick
parent 6fe647ecc4
commit 83863c03e5
2 changed files with 4 additions and 13 deletions
+3 -9
View File
@@ -2,20 +2,14 @@ testArgs:
let
pkgs = import <nixpkgs> { config = {}; overlays = []; };
unstable = (import ../pkgs/nixpkgs-pinned.nix).nixpkgs-unstable;
# Stable nixpkgs doesn't yet include the Python testing framework.
# Use unstable nixpkgs and patch it so that it uses stable nixpkgs for the VM
# machine configuration.
testingPkgs = let
# unstable as of 2020-01-09
rev = "9beb0d1ac2ebd6063efbdc4d3631f8ce137bbf90";
src = builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs-channels/archive/${rev}.tar.gz";
sha256 = "1v95779di35qhrz70p2v27kmwm09h8pgh74i1wc72v0zp3bdrf50";
};
in
testingPkgs =
pkgs.runCommand "nixpkgs-testing" {} ''
cp -r ${src} $out
cp -r ${unstable} $out
cd $out
chmod +w -R .
patch -p1 < ${./use-stable-pkgs.patch}