Last active
March 8, 2020 04:40
-
-
Save cleverca22/240c21dab528666c85a95c4edfdeae58 to your computer and use it in GitHub Desktop.
auto args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[clever@amd-nixos:~/iohk/iohk-nixops]$ nix-instantiate --eval --argstr arg2 bar --argstr arg1 foo foo.nix -A attr1.attr2 --argstr arg3 baz | |
"foobarbaz" | |
[clever@amd-nixos:~/iohk/iohk-nixops]$ cat foo.nix | |
{ arg1 }: { | |
attr1 = { arg2 }: { | |
attr2 = { arg3 }: "${arg1}${arg2}${arg3}"; | |
}; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment