summary refs log blame commit diff
path: root/pkgs/development/libraries/apr-util/default.nix
blob: 1c58aacfdf26ac5161fba58b49cda6ef103d9177 (plain) (tree)
1
2
3
4
5
6
7
8
9
                              
                                

  
                                 
 

                          
  
                  

                                                                    
    

                     
                                           
                                                             











                                                                            
{ stdenv, fetchurl, apr, expat
, bdbSupport ? false, db4 ? null
}:

assert bdbSupport -> db4 != null;

stdenv.mkDerivation rec {
  name = "apr-util-1.3.9";
  
  src = fetchurl {
    url = "mirror://apache/apr/${name}.tar.bz2";
    sha256 = "10zcy1an5xkjx8nflirvm2a8rnp9psckws6r7xr5wq6ffxnafhc7";
  };
  
  configureFlags = ''
    --with-apr=${apr} --with-expat=${expat}
    ${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
  '';
  
  passthru = {
    inherit bdbSupport;
  };

  meta = {
    homepage = http://apr.apache.org/;
    description = "A companion library to APR, the Apache Portable Runtime";
  };
}