summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-20 10:40:49 -0500
committerShea Levy <shea@shealevy.com>2014-02-20 10:40:49 -0500
commit83c98e4dd6c264b480550c6ae90d4038d99b317d (patch)
tree218c8bd37798a38975cea4420fa2dfe2c5038dd8 /lib
parent3c871ccbc9f588a7b70f9aaf276b7e7183e3360e (diff)
downloadnixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.tar
nixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.tar.gz
nixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.tar.bz2
nixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.tar.lz
nixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.tar.xz
nixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.tar.zst
nixlib-83c98e4dd6c264b480550c6ae90d4038d99b317d.zip
loaOf: Allow merging definitions from a list into other definitions IFF there is a name attribute
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index afc8f80eb0ea..9bce56bf8073 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -132,7 +132,7 @@ rec {
             { inherit (def) file;
               value = listToAttrs (
                 imap (elemIdx: elem:
-                  { name = "${elem.name or "unnamed"}-${toString defIdx}.${toString elemIdx}";
+                  { name = elem.name or "unnamed-${toString defIdx}.${toString elemIdx}";
                     value = elem;
                   }) def.value);
             }