mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-29 22:51:11 +03:00
14 lines
448 B
Nix
14 lines
448 B
Nix
let
|
|
flake = if builtins ? getFlake
|
|
then (builtins.getFlake (toString ./.)).pkgs
|
|
else (import flake-compat { src = ./.; }).defaultNix;
|
|
# NB: this is lazy
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
inherit (lock.nodes.flake-compat.locked) owner repo rev narHash;
|
|
flake-compat = builtins.fetchTarball {
|
|
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
|
sha256 = narHash;
|
|
};
|
|
in
|
|
flake.pkgs
|