krops: use nixpkgs derivation for ci
This commit is contained in:
parent
7e814620a1
commit
05f9389e4f
|
@ -9,15 +9,15 @@
|
|||
|
||||
krebs-source = { test ? false }: rec {
|
||||
nixpkgs = if test then {
|
||||
file = {
|
||||
path = toString (pkgs.fetchFromGitHub {
|
||||
derivation = ''
|
||||
with import <nixpkgs> {};
|
||||
pkgs.fetchFromGitHub {
|
||||
owner = "nixos";
|
||||
repo = "nixpkgs";
|
||||
rev = (lib.importJSON ./nixpkgs.json).rev;
|
||||
sha256 = (lib.importJSON ./nixpkgs.json).sha256;
|
||||
});
|
||||
useChecksum = true;
|
||||
};
|
||||
rev = "${(lib.importJSON ./nixpkgs.json).rev}";
|
||||
sha256 = "${(lib.importJSON ./nixpkgs.json).sha256}";
|
||||
}
|
||||
'';
|
||||
} else {
|
||||
git = {
|
||||
ref = (lib.importJSON ./nixpkgs.json).rev;
|
||||
|
|
Loading…
Reference in a new issue