mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
ab15a62c68
Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
38 lines
882 B
Nix
38 lines
882 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
let version = "4.12"; 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 = "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;
|
|
};
|
|
}
|