tcptraceroute: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-09-19 19:10:07 +02:00
parent 95222c9d85
commit 51aa71bffb

View file

@ -1,28 +1,34 @@
{ lib, stdenv , fetchurl, libpcap, libnet { lib
, stdenv
, fetchFromGitHub
, libpcap
, libnet
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pkgname = "tcptraceroute"; pname = "tcptraceroute";
name = "${pkgname}-${version}"; version = "1.5beta7";
version = "1.5beta7";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/mct/${pkgname}/archive/${name}.tar.gz"; owner = "mct";
sha256 = "1rz8bgc6r1isb40awv1siirpr2i1paa2jc1cd3l5pg1m9522xzap"; repo = "tcptraceroute";
}; rev = "${pname}-${version}";
hash = "sha256-KU4MLWtOFzzNr+I99fRbhBokhS1JUNL+OgVltkOGav4=";
};
# for reasons unknown --disable-static configure flag doesn't disable static
# linking.. we instead override CFLAGS with -static omitted
preBuild = ''
makeFlagsArray=(CFLAGS=" -g -O2 -Wall")
'';
buildInputs = [ libpcap libnet ]; # for reasons unknown --disable-static configure flag doesn't disable static
# linking.. we instead override CFLAGS with -static omitted
preBuild = ''
makeFlagsArray=(CFLAGS=" -g -O2 -Wall")
'';
meta = { buildInputs = [ libpcap libnet ];
description = "A traceroute implementation using TCP packets";
homepage = "https://github.com/mct/tcptraceroute"; meta = {
license = lib.licenses.gpl2; description = "A traceroute implementation using TCP packets";
maintainers = [ ]; homepage = "https://github.com/mct/tcptraceroute";
}; license = lib.licenses.gpl2;
maintainers = [ ];
};
} }