uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/development/libraries/serf/default.nix
Normal file
39
pkgs/development/libraries/serf/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, apr, scons, openssl, aprutil, zlib, libkrb5
|
||||
, pkg-config, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "serf";
|
||||
version = "1.3.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/serf/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config scons ];
|
||||
buildInputs = [ apr openssl aprutil zlib libiconv ]
|
||||
++ lib.optional (!stdenv.isCygwin) libkrb5;
|
||||
|
||||
patches = [ ./scons.patch ];
|
||||
|
||||
prefixKey = "PREFIX=";
|
||||
|
||||
preConfigure = ''
|
||||
sconsFlags+=" APR=$(echo ${apr.dev}/bin/*-config)"
|
||||
sconsFlags+=" APU=$(echo ${aprutil.dev}/bin/*-config)"
|
||||
sconsFlags+=" CC=$CC"
|
||||
sconsFlags+=" OPENSSL=${openssl}"
|
||||
sconsFlags+=" ZLIB=${zlib}"
|
||||
'' + lib.optionalString (!stdenv.isCygwin) ''
|
||||
sconsFlags+=" GSSAPI=${libkrb5.dev}"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "HTTP client library based on APR";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ orivej raskin ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue