diff options
author | Shea Levy <shea@shealevy.com> | 2013-02-01 00:39:26 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2013-02-01 00:39:26 -0500 |
commit | da3be9c6b23ac6677821597223c142034b2b7c91 (patch) | |
tree | 4c9688b21fac4ae20c2825497b15e746d9fa547c /pkgs/lib/attrsets.nix | |
parent | 00258a362d6d9571d1e16524c5ee17fe0ef824a2 (diff) | |
download | nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.tar nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.tar.gz nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.tar.bz2 nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.tar.lz nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.tar.xz nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.tar.zst nixpkgs-da3be9c6b23ac6677821597223c142034b2b7c91.zip |
Add deepSeq lib function
Diffstat (limited to 'pkgs/lib/attrsets.nix')
-rw-r--r-- | pkgs/lib/attrsets.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/lib/attrsets.nix b/pkgs/lib/attrsets.nix index 5e0ab620865..fcdc3c31f29 100644 --- a/pkgs/lib/attrsets.nix +++ b/pkgs/lib/attrsets.nix @@ -5,7 +5,7 @@ with { inherit (import ./trivial.nix) or; inherit (import ./default.nix) fold; inherit (import ./strings.nix) concatStringsSep; - inherit (import ./lists.nix) concatMap concatLists all; + inherit (import ./lists.nix) concatMap concatLists all deepSeqList; inherit (import ./misc.nix) maybeAttr; }; @@ -314,4 +314,5 @@ rec { overrideExisting = old: new: old // listToAttrs (map (attr: nameValuePair attr (attrByPath [attr] (getAttr attr old) new)) (attrNames old)); + deepSeqAttrs = x: y: deepSeqList (attrValues x) y; } |