mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 00:12:17 +01:00
Use nix flake functionality for development
This commit is contained in:
parent
8c56307c55
commit
dd5f51d9cc
10 changed files with 61 additions and 25 deletions
12
helpers.nix
12
helpers.nix
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue