parent
aee7a0e928
commit
00975280f1
@ -1,18 +1,18 @@
|
|||||||
{stdenv, fetchurl, pkgconfig, libbsd}:
|
{stdenv, fetchurl, pkgconfig, libbsd}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.130";
|
version = "1.187";
|
||||||
deb-version = "${version}-3";
|
deb-version = "${version}-1";
|
||||||
name = "netcat-openbsd-${version}";
|
name = "netcat-openbsd-${version}";
|
||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version}.orig.tar.gz";
|
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version}.orig.tar.gz";
|
||||||
sha256 = "0nqy14yvclgzs98gv0fwp6jlfpfy2kk367zka648jiqbbl30awpx";
|
sha256 = "0sxsxl7n7hnxz931jqsp86cdwiq2lm4h3w0i2a67935pki924gxw";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${deb-version}.debian.tar.xz";
|
url = "mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${deb-version}.debian.tar.xz";
|
||||||
sha256 = "0f9409vjm6v8a7m1zf5sr7wj6v5v8414i5vvxx1r45c11h69hh9a";
|
sha256 = "0jwbdis6avxdjzg8bcab1bdz296rkzzkdlv50fr3q0277fxjs49q";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -20,11 +20,18 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ libbsd ];
|
buildInputs = [ libbsd ];
|
||||||
|
|
||||||
sourceRoot = name;
|
sourceRoot = name;
|
||||||
patches = [ "../debian/patches/*.patch" ];
|
|
||||||
|
prePatch = ''
|
||||||
|
for i in $(cat ../debian/patches/series); do
|
||||||
|
patch -p1 < "../debian/patches/$i"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
install -Dm0755 nc $out/bin/nc
|
install -Dm0755 nc $out/bin/nc
|
||||||
install -Dm0644 nc.1 $out/share/man/man1/nc.1
|
install -Dm0644 nc.1 $out/share/man/man1/nc.1
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user