Thanks,
Is there a resource covering the rules for variables, values and functions? I
am still somewhat confused because if I define func = x: x=="x" I do not need
to antiquote with ${}.
Cheers,
Matan
---- On Wed, 24 Aug 2016 03:35:28 -0700 Damien Cassou<[email protected]>
wrote ----
When you write "attset.at", it means " search for key named 'at' in the set".
'at' is not considered as a variable but as a value. If you have a variable,
you first have to ask Nix to replace your variable by its value.
---- On Wed, 24 Aug 2016 03:46:37 -0700 Eelco
Dolstra<[email protected]> wrote ----
That should be:
pick = at: attset: if (attset ? ${at}) then [ attset.${at} ] else []
Note ${...} around "at". Otherwise it tests for an attribute named "at".
* * * * *
Matan Bendix Shenhav
Chief Science Officer
Fluxcraft
+358 (0)45 6 135 315
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev