summary refs log tree commit diff
path: root/pkgs/lib/misc.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-05-11 15:21:42 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-05-11 15:21:42 +0000
commitabf71d53520a45654278a20910178f16ddbf823b (patch)
tree00397b55b06f3f0d6be6c7ce5f4edc7c3c9e4018 /pkgs/lib/misc.nix
parent2f33cdec3896f45778064169639138bc4f75771a (diff)
downloadnixpkgs-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.nix3
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;