financier-nix/helpers.nix

13 lines
341 B
Nix
Raw Normal View History

{
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;
};
2021-07-31 16:58:29 +02:00
}