1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

Add netcat-openbsd, TCP/IP swiss army knife, openbsd variant

This commit is contained in:
Jaka Hudoklin 2013-10-17 14:14:46 +02:00 committed by Evgeny Egorochkin
parent 49e73ea117
commit 427798268c
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{stdenv, fetchurl, pkgconfig, libbsd}:
stdenv.mkDerivation rec {
name = "netcat-openbsd-1.105";
version = "1.105";
srcs = [
(fetchurl {
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.105.orig.tar.gz";
md5 = "7e67b22f1ad41a1b7effbb59ff28fca1";
})
(fetchurl {
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.105-7.debian.tar.gz";
md5 = "e914f8eb7eda5c75c679dd77787ac76b";
})
];
buildInputs = [ pkgconfig libbsd ];
sourceRoot = name;
patches = [ "../debian/patches/*.patch" ];
installPhase = ''
install -Dm0755 nc $out/bin/nc
'';
meta = {
homepage = "http://packages.debian.org/netcat-openbsd";
description = "TCP/IP swiss army knife. OpenBSD variant.";
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -1381,6 +1381,8 @@ let
netcat = callPackage ../tools/networking/netcat { };
netcat-openbsd = callPackage ../tools/networking/netcat-openbsd { };
netkittftp = callPackage ../tools/networking/netkit/tftp { };
netpbm = callPackage ../tools/graphics/netpbm { };