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
34
pkgs/tools/networking/miredo/default.nix
Normal file
34
pkgs/tools/networking/miredo/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, nettools, iproute2, judy }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.2.6";
|
||||
pname = "miredo";
|
||||
|
||||
buildInputs = [ judy ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.remlab.net/files/miredo/miredo-${version}.tar.xz";
|
||||
sha256 = "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace misc/client-hook.bsd \
|
||||
--replace '/sbin/route' '${nettools}/bin/route' \
|
||||
--replace '/sbin/ifconfig' '${nettools}/bin/ifconfig'
|
||||
substituteInPlace misc/client-hook.iproute --replace '/sbin/ip' '${iproute2}/bin/ip'
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-Judy" ];
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/lib/systemd $out/var $out/etc/miredo/miredo.conf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Teredo IPv6 Tunneling Daemon";
|
||||
homepage = "https://www.remlab.net/miredo/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.volth ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue