diff options
author | Marc Weber <marco-oweber@gmx.de> | 2009-09-20 21:54:20 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2009-09-20 21:54:20 +0000 |
commit | 88e66ae7f430eba77f1d5794b23a14c7494caa2c (patch) | |
tree | edd05cfcf36d978848b0aa0b602dbbf65e3a4cae /pkgs/lib/misc.nix | |
parent | 47a2c768f9999bd006e34c526e34ca4139e353a4 (diff) | |
download | nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.tar nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.tar.gz nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.tar.bz2 nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.tar.lz nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.tar.xz nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.tar.zst nixpkgs-88e66ae7f430eba77f1d5794b23a14c7494caa2c.zip |
rename mapRecordFlatten to mapAttrsFlatten
svn path=/nixpkgs/trunk/; revision=17315
Diffstat (limited to 'pkgs/lib/misc.nix')
-rw-r--r-- | pkgs/lib/misc.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/lib/misc.nix b/pkgs/lib/misc.nix index 8fe29151976..ba276f4ded7 100644 --- a/pkgs/lib/misc.nix +++ b/pkgs/lib/misc.nix @@ -243,8 +243,8 @@ rec { closePropagation = list: (uniqList {inputList = (innerClosePropagation [] list);}); # calls a function (f attr value ) for each record item. returns a list - # should be renamed to mapAttrsFlatten - mapRecordFlatten = f : r : map (attr: f attr (builtins.getAttr attr r) ) (attrNames r); + mapAttrsFlatten = f : r : map (attr: f attr (builtins.getAttr attr r) ) (attrNames r); + mapRecordFlatten = builtins.trace "depreceated usage of mapRecordFlatten, use mapAttrsFlatten instead" mapAttrsFlatten; # attribute set containing one attribute nvs = name : value : listToAttrs [ (nameValuePair name value) ]; |