mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
compat nixpkgs and change to testing-python.nix
This commit is contained in:
parent
842c903201
commit
8f0e518bc0
3 changed files with 36 additions and 9 deletions
17
lib/compat.nix
Normal file
17
lib/compat.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
let
|
||||
inherit (builtins)
|
||||
fetchTarball
|
||||
fromJSON
|
||||
readFile
|
||||
;
|
||||
lockfile = fromJSON (readFile ../flake.lock);
|
||||
in
|
||||
input:
|
||||
let
|
||||
locked = lockfile.nodes."${input}".locked;
|
||||
inherit (locked) rev narHash owner repo;
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
||||
sha256 = narHash;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue