8 lines
169 B
Nix
8 lines
169 B
Nix
pkgs: let
|
|
inherit (pkgs) lib runCommand;
|
|
inherit (lib.strings) readFile;
|
|
in {
|
|
run = script: readFile (runCommand "run" {} ''
|
|
echo $(${script}) > $out
|
|
'');
|
|
}
|