2021-03-14 16:05:16 +00:00
|
|
|
{ lib, stdenv, fetchurl, nettools, iproute2, judy }:
|
2016-12-31 20:03:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.2.6";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "miredo";
|
2016-12-31 20:03:27 +00:00
|
|
|
|
|
|
|
buildInputs = [ judy ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.remlab.net/files/miredo/miredo-${version}.tar.xz";
|
2016-12-31 20:03:27 +00:00
|
|
|
sha256 = "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace misc/client-hook.bsd \
|
|
|
|
--replace '/sbin/route' '${nettools}/bin/route' \
|
|
|
|
--replace '/sbin/ifconfig' '${nettools}/bin/ifconfig'
|
2021-03-14 16:05:16 +00:00
|
|
|
substituteInPlace misc/client-hook.iproute --replace '/sbin/ip' '${iproute2}/bin/ip'
|
2016-12-31 20:03:27 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--with-Judy" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/lib/systemd $out/var $out/etc/miredo/miredo.conf
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-12-31 20:03:27 +00:00
|
|
|
description = "Teredo IPv6 Tunneling Daemon";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.remlab.net/miredo/";
|
2016-12-31 20:03:27 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|