add lib for helper functions
This commit is contained in:
parent
2bd18ab7ca
commit
cc887fdc72
2 changed files with 14 additions and 1 deletions
12
lib.nix
12
lib.nix
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
post-recv = dest: pkgs.writeScriptBin "post-recv" ''
|
||||
git clone . ${dest}
|
||||
'';
|
||||
in
|
||||
let
|
||||
lib.git = {
|
||||
inherit post-recv;
|
||||
};
|
||||
in
|
||||
lib
|
||||
Loading…
Add table
Add a link
Reference in a new issue