3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/apr/default.nix
Eelco Dolstra 10cb4a8cf2 Merge remote-tracking branch 'origin/master' into multiple-outputs
Conflicts:
	pkgs/development/libraries/gtk+/2.x.nix
	pkgs/development/libraries/libsamplerate/default.nix
	pkgs/development/libraries/libsndfile/default.nix
	pkgs/misc/cups/default.nix
	pkgs/top-level/all-packages.nix
2013-08-21 17:05:30 +02:00

43 lines
979 B
Nix

{ stdenv, fetchurl }:
let
inherit (stdenv.lib) optionals;
in
stdenv.mkDerivation rec {
name = "apr-1.4.8";
src = fetchurl {
url = "mirror://apache/apr/${name}.tar.bz2";
md5 = "ce2ab01a0c3cdb71cf0a6326b8654f41";
};
patches = optionals stdenv.isDarwin [ ./darwin_fix_configure.patch ];
outputs = [ "dev" "out" ];
preConfigure =
''
configureFlagsArray+=("--with-installbuilddir=$dev/share/build")
'';
configureFlags =
# Including the Windows headers breaks unistd.h.
# Based on ftp://sourceware.org/pub/cygwin/release/libapr1/libapr1-1.3.8-2-src.tar.bz2
stdenv.lib.optional (stdenv.system == "i686-cygwin") "ac_cv_header_windows_h=no";
enableParallelBuilding = true;
postInstall =
''
mkdir $dev/bin $dev/lib
mv $out/bin/apr-1-config $dev/bin
mv $out/lib/pkgconfig $dev/lib
'';
meta = {
homepage = http://apr.apache.org/;
description = "The Apache Portable Runtime library";
};
}