1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/development/libraries/nspr/default.nix
Michael Raskin 6879f1e3b1 Update NSPR
svn path=/nixpkgs/trunk/; revision=26416
2011-03-18 08:26:11 +00:00

27 lines
719 B
Nix

{ stdenv, fetchurl }:
let version = "4.8.7"; 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 = "eb9459c31d43d1000fb1304f1e0cedab0bdac3c54c71988259c1ac10c1fe16a3";
};
preConfigure = "cd mozilla/nsprpub";
configureFlags = "--enable-optimize --disable-debug ${if stdenv.is64bit then "--enable-64bit" else ""}";
postInstall =
''
find $out -name "*.a" | xargs rm
'';
meta = {
homepage = http://www.mozilla.org/projects/nspr/;
description = "Netscape Portable Runtime, a platform-neutral API for system-level and libc-like functions";
};
}