2013-10-17 14:14:46 +02:00
|
|
|
{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";
|
2014-10-12 16:13:21 +02:00
|
|
|
sha256 = "07i1vcz8ycnfwsvz356rqmim8akfh8yhjzmhc5mqf5hmdkk3yra0";
|
2013-10-17 14:14:46 +02:00
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.105-7.debian.tar.gz";
|
2014-10-12 16:13:21 +02:00
|
|
|
sha256 = "0qxkhbwcifrps34s5mzzg79cmkvz3f96gphd3pl978pygwr5krzf";
|
2013-10-17 14:14:46 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-04-13 10:54:04 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libbsd ];
|
|
|
|
|
2013-10-17 14:14:46 +02:00
|
|
|
sourceRoot = name;
|
|
|
|
patches = [ "../debian/patches/*.patch" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm0755 nc $out/bin/nc
|
2016-10-30 02:54:19 +02:00
|
|
|
install -Dm0644 nc.1 $out/share/man/man1/nc.1
|
2013-10-17 14:14:46 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://packages.debian.org/netcat-openbsd";
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "TCP/IP swiss army knife, OpenBSD variant";
|
2013-10-17 14:14:46 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|