depot/third_party/nixpkgs/pkgs/development/libraries/judy/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

28 lines
1,015 B
Nix

{ lib, stdenv, fetchurl, pkgsBuildBuild, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "judy";
version = "1.0.5";
src = fetchurl {
url = "mirror://sourceforge/judy/Judy-${version}.tar.gz";
sha256 = "1sv3990vsx8hrza1mvq3bhvv9m6ff08y4yz7swn6znszz24l0w6j";
};
nativeBuildInputs = [ autoreconfHook ];
depsBuildBuild = [ pkgsBuildBuild.stdenv.cc ];
patches = [ ./cross.patch ];
# Disable parallel builds as manpages lack some dependencies:
# ../tool/jhton ext/JudyHS_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyHS_funcs
# make[2]: *** No rule to make target 'man/man3/JSLD', needed by 'all-am'. Stop.
# Let's wait for the upstream fix similar to https://sourceforge.net/p/judy/patches/4/
enableParallelBuilding = false;
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;
};
}