2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2010-06-03 16:37:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "judy-1.0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "mirror://sourceforge/judy/Judy-1.0.5.tar.gz";
|
2010-06-03 16:37:02 +01:00
|
|
|
sha256 = "1sv3990vsx8hrza1mvq3bhvv9m6ff08y4yz7swn6znszz24l0w6j";
|
|
|
|
};
|
|
|
|
|
2015-03-09 14:37:14 +00:00
|
|
|
# gcc 4.8 optimisations break judy.
|
2018-12-01 18:49:28 +00:00
|
|
|
# https://sourceforge.net/p/judy/mailman/message/31995144/
|
2021-01-21 17:00:13 +00:00
|
|
|
preConfigure = lib.optionalString stdenv.cc.isGNU ''
|
2015-03-09 14:37:14 +00:00
|
|
|
configureFlagsArray+=("CFLAGS=-fno-strict-aliasing -fno-aggressive-loop-optimizations")
|
|
|
|
'';
|
|
|
|
|
2010-06-03 16:37:02 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://judy.sourceforge.net/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2010-06-03 16:37:02 +01:00
|
|
|
description = "State-of-the-art C library that implements a sparse dynamic array";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2010-06-03 16:37:02 +01:00
|
|
|
};
|
|
|
|
}
|