mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 16:46:09 +00:00
ab7f2aea8e
Also drop the accept4 hack because Linux 2.6.32 is now the minimal kernel version supported by Nixpkgs.
27 lines
672 B
Nix
27 lines
672 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 ];
|
|
|
|
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";
|
|
|
|
meta = {
|
|
homepage = http://apr.apache.org/;
|
|
description = "The Apache Portable Runtime library";
|
|
};
|
|
}
|