summaryrefslogtreecommitdiffstats
path: root/krebs/krops.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-01-03 21:32:23 +0100
committerlassulus <lassulus@lassul.us>2019-01-03 21:32:29 +0100
commit05f9389e4f9e17be04e1bdef5b1cf695d3a8687b (patch)
tree634e2e947c8046872746a3c98ccb598f5dab9faf /krebs/krops.nix
parent7e814620a137b7b85b7d601ffa092caab05a6929 (diff)
krops: use nixpkgs derivation for ci
Diffstat (limited to 'krebs/krops.nix')
-rw-r--r--krebs/krops.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/krebs/krops.nix b/krebs/krops.nix
index ab7524941..76bca026d 100644
--- a/krebs/krops.nix
+++ b/krebs/krops.nix
@@ -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;