Add function to write env file

This commit is contained in:
niten 2025-04-23 11:37:19 -07:00
parent 90806f2f24
commit 988e3a5f06

View File

@ -13,4 +13,7 @@ let
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; }