krops: use nixpkgs derivation for ci

This commit is contained in:
lassulus 2019-01-03 21:32:23 +01:00
parent 7e814620a1
commit 05f9389e4f

View File

@ -9,15 +9,15 @@
krebs-source = { test ? false }: rec { krebs-source = { test ? false }: rec {
nixpkgs = if test then { nixpkgs = if test then {
file = { derivation = ''
path = toString (pkgs.fetchFromGitHub { with import <nixpkgs> {};
pkgs.fetchFromGitHub {
owner = "nixos"; owner = "nixos";
repo = "nixpkgs"; repo = "nixpkgs";
rev = (lib.importJSON ./nixpkgs.json).rev; rev = "${(lib.importJSON ./nixpkgs.json).rev}";
sha256 = (lib.importJSON ./nixpkgs.json).sha256; sha256 = "${(lib.importJSON ./nixpkgs.json).sha256}";
}); }
useChecksum = true; '';
};
} else { } else {
git = { git = {
ref = (lib.importJSON ./nixpkgs.json).rev; ref = (lib.importJSON ./nixpkgs.json).rev;