depot/third_party/nixpkgs/pkgs/development/libraries/judy/default.nix
Default email 5b567aa208 Project import generated by Copybara.
GitOrigin-RevId: 16105403bdd843540cbef9c63fc0f16c1c6eaa70
2021-07-21 09:28:18 +02:00

24 lines
728 B
Nix

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