mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
tcptraceroute: switch to fetchFromGitHub
This commit is contained in:
parent
95222c9d85
commit
51aa71bffb
@ -1,16 +1,22 @@
|
||||
{ lib, stdenv , fetchurl, libpcap, libnet
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, libpcap
|
||||
, libnet
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pkgname = "tcptraceroute";
|
||||
name = "${pkgname}-${version}";
|
||||
pname = "tcptraceroute";
|
||||
version = "1.5beta7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mct/${pkgname}/archive/${name}.tar.gz";
|
||||
sha256 = "1rz8bgc6r1isb40awv1siirpr2i1paa2jc1cd3l5pg1m9522xzap";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mct";
|
||||
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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user