krops: use nixpkgs derivation for ci

This commit is contained in:
lassulus 2019-01-03 21:32:23 +01:00
parent 7e814620a1
commit 05f9389e4f
1 changed files with 7 additions and 7 deletions

View File

@ -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;