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
33
pkgs/tools/networking/nylon/configure-use-solib.patch
Normal file
33
pkgs/tools/networking/nylon/configure-use-solib.patch
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
--- nylon-1.21/configure 2006-08-20 00:53:31.000000000 +0200
|
||||
+++ nylon-1.21-patch/configure 2015-01-13 22:23:34.509154220 +0100
|
||||
@@ -5174,25 +5174,25 @@
|
||||
*)
|
||||
echo "$as_me:$LINENO: result: $withval" >&5
|
||||
echo "${ECHO_T}$withval" >&6
|
||||
- if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
|
||||
+ if test -f $withval/include/event.h -a -f $withval/lib/libevent.so; then
|
||||
owd=`pwd`
|
||||
if cd $withval; then withval=`pwd`; cd $owd; fi
|
||||
EVENTINC="-I$withval/include"
|
||||
EVENTLIB="-L$withval/lib -levent"
|
||||
- elif test -f $withval/event.h -a -f $withval/libevent.a; then
|
||||
+ elif test -f $withval/event.h -a -f $withval/libevent.so; then
|
||||
owd=`pwd`
|
||||
if cd $withval; then withval=`pwd`; cd $owd; fi
|
||||
EVENTINC="-I$withval"
|
||||
EVENTLIB="-L$withval -levent"
|
||||
else
|
||||
- { { echo "$as_me:$LINENO: error: event.h or libevent.a not found in $withval" >&5
|
||||
-echo "$as_me: error: event.h or libevent.a not found in $withval" >&2;}
|
||||
+ { { echo "$as_me:$LINENO: error: event.h or libevent.so not found in $withval" >&5
|
||||
+echo "$as_me: error: event.h or libevent.so not found in $withval" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
else
|
||||
- if test -f ${prefix}/include/event.h -a -f ${prefix}/lib/libevent.a;
|
||||
+ if test -f ${prefix}/include/event.h -a -f ${prefix}/lib/libevent.so;
|
||||
then
|
||||
EVENTINC="-I${prefix}/include"
|
||||
EVENTLIB="-L${prefix}/lib -levent"
|
||||
30
pkgs/tools/networking/nylon/default.nix
Normal file
30
pkgs/tools/networking/nylon/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchurl, libevent, buildEnv }:
|
||||
let
|
||||
# failed to find a better way to make it work
|
||||
libevent-comb = buildEnv {
|
||||
inherit (libevent.out) name;
|
||||
paths = [ libevent.dev libevent.out ];
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nylon";
|
||||
version = "1.21";
|
||||
src = fetchurl {
|
||||
url = "https://monkey.org/~marius/nylon/nylon-${version}.tar.gz";
|
||||
sha256 = "34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4";
|
||||
};
|
||||
|
||||
patches = [ ./configure-use-solib.patch ];
|
||||
|
||||
configureFlags = [ "--with-libevent=${libevent-comb}" ];
|
||||
|
||||
buildInputs = [ libevent ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://monkey.org/~marius/nylon";
|
||||
description = "Proxy server, supporting SOCKS 4 and 5, as well as a mirror mode";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ edwtjo ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue