mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-20 04:10:12 -04:00
7 lines
198 B
Plaintext
7 lines
198 B
Plaintext
{ a, b ? 3, trueMsg ? "yes", falseMsg ? "no" }:
|
|
if a > b
|
|
then builtins.trace trueMsg true
|
|
else builtins.trace falseMsg false
|
|
nix-repl> import ./test.nix { a = 5; trueMsg = "ok"; }
|
|
trace: ok
|
|
true |