Add function to write env file
This commit is contained in:
parent
90806f2f24
commit
988e3a5f06
@ -13,4 +13,7 @@ let
|
|||||||
installPhase = "python -mjson.tool ${filename} > $out";
|
installPhase = "python -mjson.tool ${filename} > $out";
|
||||||
};
|
};
|
||||||
|
|
||||||
in { inherit format-json-file; }
|
writeEnv = name: vars:
|
||||||
|
pkgs.writeText name (mapAttrsToList (var: val: "${var}=${val}") vars);
|
||||||
|
|
||||||
|
in { inherit format-json-file writeEnv; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user