mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
26 lines
683 B
Nix
26 lines
683 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "traceroute-${version}";
|
|
version = "2.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/traceroute/${name}.tar.gz";
|
|
sha256 = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6";
|
|
};
|
|
|
|
makeFlags = "prefix=$(out) LDFLAGS=-lm";
|
|
|
|
preConfigure = ''
|
|
sed -i 's@LIBS := \(.*\) -lm \(.*\)@LIBS := \1 \2@' Make.rules
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://traceroute.sourceforge.net/;
|
|
description = "Tracks the route taken by packets over an IP network";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = [ maintainers.koral ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|