Use nix flake functionality for development

This commit is contained in:
Martin Puppe 2022-04-08 01:47:18 +02:00
parent 8c56307c55
commit dd5f51d9cc
10 changed files with 61 additions and 25 deletions

View file

@ -1,4 +1,12 @@
{
fetchFinancier = { fetchgit, meta ? import ./meta.nix }:
fetchgit { inherit (meta) url rev sha256; };
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;
};
}