l coaxmetal.r: build with unstable
This commit is contained in:
parent
0c15f3b6a7
commit
d1a55f8876
@ -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;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user