1
0
Fork 0
mirror of https://github.com/cachix/cachix-action.git synced 2025-06-07 22:57:01 +09:00
cachix-action/test-with-arg.nix
2024-11-22 02:42:43 +04:00

13 lines
182 B
Nix

{
arg ? null,
}:
with import <nixpkgs> { };
if arg == null then
abort "arg is not set"
else
writeText "test-with-arg" ''
${toString builtins.currentTime}
${arg}
''