diff options
author | lassulus <git@lassul.us> | 2023-12-12 11:39:52 +0100 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-12-12 11:44:57 +0100 |
commit | 874de0795b1b6747e6625b5bbeb148a2a54444df (patch) | |
tree | f5d4bcb39fb0e61c3f910569fa83ef292e9d4be7 /krebs/krops.nix | |
parent | 61a5c464b894a3b78bd98998664f89b9611ecc1a (diff) |
replace nixpkgs.json with flake.lock
Diffstat (limited to 'krebs/krops.nix')
-rw-r--r-- | krebs/krops.nix | 8 |
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; }; }; |