nixpkgs/pkgs/tools/networking/netcat-openbsd/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

{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}";
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";
})
(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";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libbsd ];
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
'';
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 ];
};
}