Merge pull request from dtzWill/fix/netcat-openbsd-musl

netcat-openbsd: fix w/musl by providing b64_ntop
This commit is contained in:
Will Dietz 2018-03-26 14:07:06 -05:00 committed by GitHub
commit ec10698e5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, libbsd}:
{stdenv, fetchurl, fetchpatch, pkgconfig, libbsd}:
stdenv.mkDerivation rec {
version = "1.187";
@ -27,6 +27,13 @@ stdenv.mkDerivation rec {
done
'';
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl [
(fetchpatch {
url = "https://gitweb.gentoo.org/proj/musl.git/plain/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-b64_ntop.patch?id=4a5864922232c7df550c21f2a7b77fe6f8ffc6d6";
sha256 = "1cgqb6fxas5yiwf26hq57v627hhmcskl5j6rx30090ha2ksjqyvr";
})
];
installPhase = ''
runHook preInstall
install -Dm0755 nc $out/bin/nc