Merge pull request #61620 from dtzWill/update/dnstracer-1.10

dnstracer: 1.9 -> 1.10,  touchup
This commit is contained in:
Renaud 2019-05-17 14:07:28 +02:00 committed by GitHub
commit d213a8ff9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,25 @@
{ stdenv, fetchurl, libresolv }:
{ stdenv, fetchurl, libresolv, perl }:
stdenv.mkDerivation rec {
version = "1.9";
name = "dnstracer-${version}";
version = "1.10";
pname = "dnstracer";
src = fetchurl {
url = "https://www.mavetju.org/download/${name}.tar.gz";
sha256 = "177y58smnq2xhx9lbmj1gria371iv3r1d132l2gjvflkjsphig1f";
url = "https://www.mavetju.org/download/${pname}-${version}.tar.bz2";
sha256 = "089bmrjnmsga2n0r4xgw4bwbf41xdqsnmabjxhw8lngg2pns1kb4";
};
outputs = [ "out" "man" ];
nativeBuildInputs = [ perl /* for pod2man */ ];
setOutputFlags = false;
installPhase = ''
install -Dm755 -t $out/bin dnstracer
install -Dm755 -t $man/share/man/man8 dnstracer.8
'';
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ libresolv ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lresolv";