financier-nix/helpers.nix

12 lines
341 B
Nix

{
fetchFinancier = { fetchgit }:
let
financierLockData = (builtins.fromJSON
(builtins.readFile ./flake.lock)).nodes.financier.locked;
inherit (financierLockData) narHash owner repo rev;
url = "https://gitlab.com/${owner}/${repo}.git";
in fetchgit {
inherit url rev;
sha256 = narHash;
};
}