2019-07-15 16:27:17 +00:00
|
|
|
{ lib, pkgs, test, ... }:
|
2021-10-23 20:22:38 +00:00
|
|
|
if test then {} else {
|
2019-07-15 16:27:17 +00:00
|
|
|
nixpkgs = lib.mkIf (! test) (lib.mkForce {
|
2019-04-07 16:56:50 +00:00
|
|
|
file = {
|
|
|
|
path = toString (pkgs.fetchFromGitHub {
|
|
|
|
owner = "nixos";
|
|
|
|
repo = "nixpkgs";
|
|
|
|
rev = (lib.importJSON ../../../krebs/nixpkgs.json).rev;
|
|
|
|
sha256 = (lib.importJSON ../../../krebs/nixpkgs.json).sha256;
|
|
|
|
});
|
|
|
|
useChecksum = true;
|
|
|
|
};
|
2019-07-15 16:27:17 +00:00
|
|
|
});
|
2019-12-02 14:52:32 +00:00
|
|
|
nixpkgs-unstable = lib.mkForce {
|
|
|
|
file.path = "/var/empty";
|
|
|
|
};
|
2021-10-23 20:22:38 +00:00
|
|
|
}
|