nixpkgs/lib
Eelco Dolstra a6bb468acf
mkIf: Check whether the condition is a Boolean
This gives a nicer error message than (say)

while evaluating the option `fileSystems':
while evaluating the attribute ‘isDefined’ at /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:323:5:
while evaluating ‘filterOverrides’ at /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:395:21, called from /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:307:18:
while evaluating ‘concatMap’ at /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/lists.nix:79:18, called from /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:401:8:
while evaluating ‘concatMap’ at /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/lists.nix:79:18, called from /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:302:17:
while evaluating anonymous function at /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:302:28, called from undefined position:
while evaluating ‘dischargeProperties’ at /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:365:25, called from /nix/store/r8z4vvl2qzg31zm4ra6awlx5b22k7gf9-nixos-16.09.tar.gz/lib/modules.nix:303:62:
value is a list while a Boolean was expected
2016-11-21 14:51:57 +01:00
..
tests
attrsets.nix toDerivation: Provide "out" and "outputName" attributes 2016-09-19 20:02:07 +02:00
composable-derivation.nix
customisation.nix mkDerivation: add overrideAttrs function 2016-10-02 11:08:34 -04:00
debug.nix debug.nix: deprecate strict 2016-06-26 02:05:45 +02:00
default.nix lib: add ini configuration generator 2016-11-17 19:46:41 +01:00
deprecated.nix
fetchers.nix lib/fetchers.nix: factor out impure proxy vars (#18702) 2016-09-17 21:50:01 +02:00
generators.nix lib/generators: add manual documentation 2016-11-17 23:19:28 +01:00
licenses.nix camingo-code: init at 1.0 2016-10-06 17:47:50 -07:00
lists.nix Use builtins.partition if available 2016-08-29 17:50:06 +02:00
maintainers.nix asn1c: init at 0.9.27 (#20577) 2016-11-20 17:45:58 +00:00
meta.nix
minver.nix
modules.nix mkIf: Check whether the condition is a Boolean 2016-11-21 14:51:57 +01:00
options.nix module system: extensible option types 2016-11-06 00:05:58 +01:00
platforms.nix
sandbox.nix
sources.nix Expose guts of cleanSource 2016-11-17 22:21:18 -05:00
strings-with-deps.nix
strings.nix getVersion: first try drv.version before parsing drv.name 2016-08-13 17:17:36 +02:00
systems.nix
tests.nix lib: add generator functions for toJSON & toYAML 2016-11-17 23:16:24 +01:00
trivial.nix Merge pull request #19496 from Ericson2314/overridePackages 2016-10-26 14:01:13 -04:00
types.nix either type: improve merge function 2016-11-08 20:46:34 +01:00