diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-05-11 15:21:42 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-05-11 15:21:42 +0000 |
commit | abf71d53520a45654278a20910178f16ddbf823b (patch) | |
tree | 00397b55b06f3f0d6be6c7ce5f4edc7c3c9e4018 /pkgs/lib/misc.nix | |
parent | 2f33cdec3896f45778064169639138bc4f75771a (diff) | |
download | nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.tar nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.tar.gz nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.tar.bz2 nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.tar.lz nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.tar.xz nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.tar.zst nixpkgs-abf71d53520a45654278a20910178f16ddbf823b.zip |
* textClosure: don't use uniqList, and don't rely on buggy behaviour
in the Nix expression evaluator (namely that comparison of attribute sets works properly). * Removed some redundant parentheses in builder-defs. svn path=/nixpkgs/trunk/; revision=15551
Diffstat (limited to 'pkgs/lib/misc.nix')
-rw-r--r-- | pkgs/lib/misc.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/lib/misc.nix b/pkgs/lib/misc.nix index 21dd6d6c034..b8e49bad977 100644 --- a/pkgs/lib/misc.nix +++ b/pkgs/lib/misc.nix @@ -160,7 +160,8 @@ rec { (val!=null) && (val!=false)) (tail x))))) condList)) ; - + + # !!! This function has O(n^2) performance, so you probably don't want to use it! uniqList = {inputList, outputList ? []}: if (inputList == []) then outputList else let x=head inputList; |