1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/tools/networking/miredo/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

35 lines
958 B
Nix

{ stdenv, fetchurl, nettools, iproute, judy }:
stdenv.mkDerivation rec {
version = "1.2.6";
name = "miredo-${version}";
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' '${iproute}/bin/ip'
'';
configureFlags = [ "--with-Judy" ];
postInstall = ''
rm -rf $out/lib/systemd $out/var $out/etc/miredo/miredo.conf
'';
meta = with stdenv.lib; {
description = "Teredo IPv6 Tunneling Daemon";
homepage = https://www.remlab.net/miredo/;
license = licenses.gpl2;
maintainers = [ maintainers.volth ];
platforms = platforms.unix;
};
}