nixpkgs/pkgs/development/libraries/nspr/default.nix
2016-05-09 19:37:22 +02:00

37 lines
860 B
Nix

{ stdenv, fetchurl }:
let version = "4.12"; in
stdenv.mkDerivation {
name = "nspr-${version}";
src = fetchurl {
url = "mirror://mozilla/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
sha256 = "1pk98bmc5xzbl62q5wf2d6mryf0v95z6rsmxz27nclwiaqg0mcg0";
};
outputs = [ "dev" "out" ];
outputBin = "dev";
preConfigure = ''
cd nspr
'';
configureFlags = [
"--enable-optimize"
"--disable-debug"
] ++ stdenv.lib.optional stdenv.is64bit "--enable-64bit";
postInstall = ''
find $out -name "*.a" -delete
moveToOutput share "$dev" # just aclocal
'';
enableParallelBuilding = true;
meta = {
homepage = http://www.mozilla.org/projects/nspr/;
description = "Netscape Portable Runtime, a platform-neutral API for system-level and libc-like functions";
platforms = stdenv.lib.platforms.all;
};
}