krops: use nixpkgs derivation for ci
This commit is contained in:
parent
7e814620a1
commit
05f9389e4f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user