diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2007-05-27 14:34:01 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2007-05-27 14:34:01 +0000 |
commit | c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b (patch) | |
tree | 02eef1a5900879bd8f2f746a365e8e27be202a22 /pkgs/lib | |
parent | eec1e8dc0e3589340dd9afb33839a5bee988716a (diff) | |
download | nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.tar nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.tar.gz nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.tar.bz2 nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.tar.lz nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.tar.xz nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.tar.zst nixlib-c5e1ae5eaf0cc67f3ea626bd4160150fa6ba6d7b.zip |
* Purity fix in building Python: don't let it search in /usr/include
and /usr/lib to determine what optional modules (like bzip2, zlib, dl, etc.) to build. Unfortunately there doesn't seem to be a way to tell the Python build process to look anywhere else, so I had to patch setup.py. svn path=/nixpkgs/trunk/; revision=8780
Diffstat (limited to 'pkgs/lib')
-rw-r--r-- | pkgs/lib/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index b7087a57aba5..cac34c267190 100644 --- a/pkgs/lib/default.nix +++ b/pkgs/lib/default.nix @@ -38,6 +38,10 @@ rec { ++ (intersperse separator (tail list)); + concatStringsSep = separator: list: + concatStrings (intersperse separator list); + + # Flatten the argument into a single list; that is, nested lists are # spliced into the top-level lists. E.g., `flatten [1 [2 [3] 4] 5] # == [1 2 3 4 5]' and `flatten 1 == [1]'. |