diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-01-10 15:57:23 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-01-10 15:57:23 +0000 |
commit | f9a6c93d4377756f9e7f9247f7fd93e23e41495a (patch) | |
tree | 465a56a4063bde907249c98940ea0bd20dfc5529 /pkgs/tools/networking/mtr | |
parent | 3905064194d66dd5418520348881816a4600c429 (diff) | |
download | nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.tar nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.tar.gz nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.tar.bz2 nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.tar.lz nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.tar.xz nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.tar.zst nixpkgs-f9a6c93d4377756f9e7f9247f7fd93e23e41495a.zip |
Adding mtr.
svn path=/nixpkgs/trunk/; revision=25495
Diffstat (limited to 'pkgs/tools/networking/mtr')
-rw-r--r-- | pkgs/tools/networking/mtr/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/networking/mtr/default.nix b/pkgs/tools/networking/mtr/default.nix new file mode 100644 index 00000000000..d4cfaa4ce9b --- /dev/null +++ b/pkgs/tools/networking/mtr/default.nix @@ -0,0 +1,47 @@ +x@{builderDefsPackage + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="mtr"; + version="0.80"; + name="${baseName}-${version}"; + url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz"; + hash="1h0fzxy5cwml3p2nq749sq8mk2dsvm4qb1ah7a9hbf7kzabxvfvn"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "A network diagnostics tool"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.gpl2; + }; + passthru = { + updateInfo = { + downloadPage = "ftp://ftp.bitwizard.nl/mtr/"; + }; + }; +}) x + |