commit
7f2adbf569
@ -1,49 +1,29 @@
|
|||||||
x@{builderDefsPackage, ncurses
|
{stdenv, fetchurl, ncurses, autoconf
|
||||||
, ...}:
|
, withGtk ? false, gtk ? null}:
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
assert withGtk -> gtk != null;
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
||||||
sourceInfo = rec {
|
with stdenv.lib;
|
||||||
baseName="mtr";
|
stdenv.mkDerivation rec {
|
||||||
version="0.85";
|
baseName="mtr";
|
||||||
name="${baseName}-${version}";
|
version="0.86";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz";
|
url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz";
|
||||||
hash="1jqrz8mil3lraaqgc87dyvx8d4bf3vq232pfx9mksxnkbphp4qvd";
|
sha256 = "01lcy89q3i9g4kz4liy6m7kcq1zyvmbc63rqidgw67341f94inf5";
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
configureFlags = optionalString (!withGtk) "--without-gtk";
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
patches = [ ./edd425.patch ];
|
buildInputs = [ autoconf ncurses ] ++ optional withGtk gtk;
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doPatch" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
homepage = http://www.bitwizard.nl/mtr/;
|
||||||
description = "A network diagnostics tool";
|
description = "A network diagnostics tool";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = [ maintainers.koral maintainers.raskin ];
|
||||||
[
|
platforms = platforms.unix;
|
||||||
raskin
|
license = licenses.gpl2;
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
unix;
|
|
||||||
license = a.lib.licenses.gpl2;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "ftp://ftp.bitwizard.nl/mtr/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user