summaryrefslogtreecommitdiffstats
path: root/krebs/krops.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-12-12 11:39:52 +0100
committerlassulus <git@lassul.us>2023-12-12 11:44:57 +0100
commit874de0795b1b6747e6625b5bbeb148a2a54444df (patch)
treef5d4bcb39fb0e61c3f910569fa83ef292e9d4be7 /krebs/krops.nix
parent61a5c464b894a3b78bd98998664f89b9611ecc1a (diff)
replace nixpkgs.json with flake.lock
Diffstat (limited to 'krebs/krops.nix')
-rw-r--r--krebs/krops.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/krebs/krops.nix b/krebs/krops.nix
index aeb2413a4..c55865d54 100644
--- a/krebs/krops.nix
+++ b/krebs/krops.nix
@@ -10,8 +10,8 @@
krebs-source = { test ? false }: rec {
nixpkgs = if test then {
derivation = let
- rev = (lib.importJSON ./nixpkgs.json).rev;
- sha256 = (lib.importJSON ./nixpkgs.json).sha256;
+ rev = (lib.importJSON ../flake.lock).nodes.nixpkgs.locked.rev;
+ sha256 = (lib.importJSON ../flake.lock).nixpkgs.locked.narHash;
in ''
with import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
@@ -26,8 +26,8 @@
'';
} else {
git = {
- ref = (lib.importJSON ./nixpkgs.json).rev;
- url = https://github.com/NixOS/nixpkgs;
+ ref = (lib.importJSON ../flake.lock).nodes.nixpkgs.locked.rev;
+ url = "https://github.com/NixOS/nixpkgs";
shallow = true;
};
};