2021-01-15 14:45:37 +00:00
|
|
|
{lib, stdenv, fetchurl}:
|
2009-03-01 21:34:39 +00:00
|
|
|
|
2021-08-27 14:47:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tunctl";
|
|
|
|
version = "1.5";
|
|
|
|
|
2009-03-01 21:34:39 +00:00
|
|
|
src = fetchurl {
|
2021-08-27 14:47:49 +00:00
|
|
|
url = "mirror://sourceforge/tunctl/tunctl-${version}.tar.gz";
|
2009-03-01 21:34:39 +00:00
|
|
|
sha256 = "aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "tunctl" ];
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2009-03-01 21:34:39 +00:00
|
|
|
cp tunctl $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://tunctl.sourceforge.net/";
|
2009-03-01 21:34:39 +00:00
|
|
|
description = "Utility to set up and maintain TUN/TAP network interfaces";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "tunctl";
|
2024-05-26 12:16:07 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2009-03-01 21:34:39 +00:00
|
|
|
};
|
|
|
|
}
|