treewide: use boolToString function

This commit is contained in:
Franz Pletz
2017-04-11 18:08:51 +02:00
parent 54fff9ec1a
commit 3ab45f4b36
40 changed files with 111 additions and 118 deletions

View File

@@ -30,6 +30,11 @@ rec {
/* boolean and */
and = x: y: x && y;
/* Convert a boolean to a string.
Note that toString on a bool returns "1" and "".
*/
boolToString = b: if b then "true" else "false";
/* Merge two attribute sets shallowly, right side trumps left
Example: