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
44
pkgs/applications/networking/3proxy/default.nix
Normal file
44
pkgs/applications/networking/3proxy/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchFromGitHub, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "3proxy";
|
||||
version = "0.9.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "3proxy";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-4bLlQ/ULvpjs6fr19yBBln5mRRc+yj+zVLiTs1e/Ypc=";
|
||||
};
|
||||
|
||||
# They use 'install -s', that calls the native strip instead of the cross.
|
||||
# Don't strip binary on install, we strip it on fixup phase anyway.
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile.Linux \
|
||||
--replace "(INSTALL_BIN) -s" "(INSTALL_BIN)" \
|
||||
--replace "/usr" ""
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"-f Makefile.Linux"
|
||||
"INSTALL=install"
|
||||
"DESTDIR=${placeholder "out"}"
|
||||
"CC:=$(CC)"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
rm -fr $out/var
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
smoke-test = nixosTests._3proxy;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tiny free proxy server";
|
||||
homepage = "https://github.com/3proxy/3proxy";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ misuzu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue