1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/development/libraries/judy/default.nix
Eric Seidel 662a6b1ca6 remove all references to stdenv.cc.cc.is{GNU,Clang}
use the new `stdenv.cc.is{GNU,Clang}` instead, which will always be
defined.
2015-05-11 14:44:50 -07:00

23 lines
671 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "judy-1.0.5";
src = fetchurl {
url = mirror://sourceforge/judy/Judy-1.0.5.tar.gz;
sha256 = "1sv3990vsx8hrza1mvq3bhvv9m6ff08y4yz7swn6znszz24l0w6j";
};
# gcc 4.8 optimisations break judy.
# http://sourceforge.net/p/judy/mailman/message/31995144/
preConfigure = stdenv.lib.optionalString stdenv.cc.isGNU ''
configureFlagsArray+=("CFLAGS=-fno-strict-aliasing -fno-aggressive-loop-optimizations")
'';
meta = {
homepage = http://judy.sourceforge.net/;
license = stdenv.lib.licenses.lgpl21Plus;
description = "State-of-the-art C library that implements a sparse dynamic array";
};
}