l coaxmetal.r: build with unstable
This commit is contained in:
parent
0c15f3b6a7
commit
d1a55f8876
lass
|
@ -1,4 +1,21 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
nixpkgs.git.ref = lib.mkForce (lib.importJSON ../../../krebs/nixpkgs-unstable.json).rev;
|
||||
{ lib, pkgs, test, ... }: let
|
||||
npkgs = lib.importJSON ../../../krebs/nixpkgs-unstable.json;
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
else
|
||||
{}
|
||||
|
|
Loading…
Reference in a new issue