3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/traceroute/default.nix

26 lines
684 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "traceroute";
2016-07-09 13:40:14 +01:00
version = "2.1.0";
src = fetchurl {
url = "mirror://sourceforge/traceroute/${pname}-${version}.tar.gz";
2016-07-09 13:40:14 +01:00
sha256 = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6";
};
makeFlags = [ "prefix=$(out)" "LDFLAGS=-lm" ];
preConfigure = ''
sed -i 's@LIBS := \(.*\) -lm \(.*\)@LIBS := \1 \2@' Make.rules
'';
meta = with lib; {
homepage = "http://traceroute.sourceforge.net/";
description = "Tracks the route taken by packets over an IP network";
2021-01-15 09:19:50 +00:00
license = lib.licenses.gpl2;
maintainers = [ maintainers.koral ];
2014-10-06 23:04:51 +01:00
platforms = platforms.linux;
};
}