nixpkgs/pkgs/development/libraries/nspr/default.nix
William A. Kennington III d80f4c49b0 nspr: 4.10.9 -> 4.10.10
2015-11-04 00:58:28 -08:00

33 lines
801 B
Nix

{ stdenv, fetchurl }:
let version = "4.10.10"; in
stdenv.mkDerivation {
name = "nspr-${version}";
src = fetchurl {
url = "http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${version}/src/nspr-${version}.tar.gz";
sha256 = "343614971c30520d0fa55f4af0a72578e2d8674bb71caf7187490c3379523107";
};
preConfigure = ''
cd nspr
'';
configureFlags = [
"--enable-optimize"
"--disable-debug"
] ++ stdenv.lib.optional stdenv.is64bit "--enable-64bit";
postInstall = ''
find $out -name "*.a" -delete
'';
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;
};
}