From 7fca2693f566ef3c078105ab5973a12ec03c535d Mon Sep 17 00:00:00 2001 From: koral Date: Mon, 29 Sep 2014 21:00:35 +0200 Subject: [PATCH] New package: traceroute-2.0.20 Closes #4322 --- pkgs/tools/networking/traceroute/default.nix | 25 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/networking/traceroute/default.nix diff --git a/pkgs/tools/networking/traceroute/default.nix b/pkgs/tools/networking/traceroute/default.nix new file mode 100644 index 000000000000..3300d12ebfa3 --- /dev/null +++ b/pkgs/tools/networking/traceroute/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "traceroute-${version}"; + version = "2.0.20"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/traceroute/${name}.tar.gz"; + sha256 = "0wf2xnh5hm81fdn6dbkqqqlwbn6gdvy178zkpzbjhm694navmb1g"; + }; + + makeFlags = "prefix=$(out)"; + + 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.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 37f67fe665ed..cf667386cbb3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2364,6 +2364,8 @@ let tpm-tools = callPackage ../tools/security/tpm-tools { }; + traceroute = callPackage ../tools/networking/traceroute { }; + trickle = callPackage ../tools/networking/trickle {}; trousers = callPackage ../tools/security/trousers { };