l coaxmetal.r: build with unstable

This commit is contained in:
lassulus 2021-10-23 19:03:02 +02:00
parent 0c15f3b6a7
commit d1a55f8876
2 changed files with 21 additions and 4 deletions

View File

@ -1,4 +1,21 @@
{ lib, pkgs, ... }: { lib, pkgs, test, ... }: let
{ npkgs = lib.importJSON ../../../krebs/nixpkgs-unstable.json;
nixpkgs.git.ref = lib.mkForce (lib.importJSON ../../../krebs/nixpkgs-unstable.json).rev; in {
nixpkgs = lib.mkForce (if test then { derivation = let
rev = npkgs.rev;
sha256 = npkgs.sha256;
in ''
with import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
sha256 = "${sha256}";
}) {};
pkgs.fetchFromGitHub {
owner = "nixos";
repo = "nixpkgs";
rev = "${rev}";
sha256 = "${sha256}";
}
''; } else {
git.ref = npkgs.rev;
});
} }

View File

@ -24,7 +24,7 @@
}; };
}; };
} }
(if (lib.pathExists (./. + "/1systems/${name}/source.nix")) && (! test) then (if lib.pathExists (./. + "/1systems/${name}/source.nix") then
import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs test; } import (./. + "/1systems/${name}/source.nix") { inherit lib pkgs test; }
else else
{} {}