Adding mtr.
svn path=/nixpkgs/trunk/; revision=25495
This commit is contained in:
parent
3905064194
commit
f9a6c93d43
47
pkgs/tools/networking/mtr/default.nix
Normal file
47
pkgs/tools/networking/mtr/default.nix
Normal file
@ -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
|
||||
|
@ -894,6 +894,8 @@ let
|
||||
|
||||
mtools = callPackage ../tools/filesystems/mtools { };
|
||||
|
||||
mtr = callPackage ../tools/networking/mtr {};
|
||||
|
||||
multitran = recurseIntoAttrs (let callPackage = newScope pkgs.multitran; in rec {
|
||||
multitrandata = callPackage ../tools/text/multitran/data { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user