2013-10-17 13:14:46 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, libbsd}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-25 14:05:48 +01:00
|
|
|
version = "1.130";
|
|
|
|
deb-version = "${version}-3";
|
|
|
|
name = "netcat-openbsd-${version}";
|
2013-10-17 13:14:46 +01:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchurl {
|
2017-08-25 14:05:48 +01:00
|
|
|
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0nqy14yvclgzs98gv0fwp6jlfpfy2kk367zka648jiqbbl30awpx";
|
2013-10-17 13:14:46 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2017-08-25 14:05:48 +01:00
|
|
|
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${deb-version}.debian.tar.xz";
|
|
|
|
sha256 = "0f9409vjm6v8a7m1zf5sr7wj6v5v8414i5vvxx1r45c11h69hh9a";
|
2013-10-17 13:14:46 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-04-13 09:54:04 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libbsd ];
|
|
|
|
|
2013-10-17 13:14:46 +01:00
|
|
|
sourceRoot = name;
|
|
|
|
patches = [ "../debian/patches/*.patch" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm0755 nc $out/bin/nc
|
2016-10-30 01:54:19 +01:00
|
|
|
install -Dm0644 nc.1 $out/share/man/man1/nc.1
|
2013-10-17 13:14:46 +01:00
|
|
|
'';
|
|
|
|
|
2017-08-25 14:05:48 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://packages.debian.org/netcat-openbsd;
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "TCP/IP swiss army knife, OpenBSD variant";
|
2017-08-25 14:05:48 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
2013-10-17 13:14:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|