1
0
Fork 0
mirror of https://github.com/cachix/cachix-action.git synced 2025-06-09 09:35:10 +09:00
cachix-action/test-with-arg.nix
2020-02-27 16:46:25 +01:00

10 lines
168 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}
''