mtr: 0.87 -> 0.92
This commit is contained in:
parent
2a36c6c185
commit
68764d50b3
@ -1,34 +1,40 @@
|
|||||||
{stdenv, fetchurl, autoreconfHook, pkgconfig, ncurses
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, ncurses
|
||||||
, withGtk ? false, gtk2 ? null}:
|
, withGtk ? false, gtk2 ? null }:
|
||||||
|
|
||||||
assert withGtk -> gtk2 != null;
|
assert withGtk -> gtk2 != null;
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
baseName="mtr";
|
name="mtr-${version}";
|
||||||
version="0.87";
|
version="0.92";
|
||||||
name="${baseName}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url="ftp://ftp.bitwizard.nl/${baseName}/${name}.tar.gz";
|
owner = "traviscross";
|
||||||
sha256 = "17zi99n8bdqrwrnbfyjn327jz4gxx287wrq3vk459c933p34ff8r";
|
repo = "mtr";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0ca2ml846cv0zzkpd8y7ah6i9b3czrr8wlxja3cray94ybwb294d";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = "substituteInPlace Makefile.in --replace ' install-exec-hook' ''";
|
preConfigure = ''
|
||||||
|
echo ${version} > .tarball-version
|
||||||
|
|
||||||
configureFlags = optionalString (!withGtk) "--without-gtk";
|
./bootstrap.sh
|
||||||
|
|
||||||
|
substituteInPlace Makefile.in --replace ' install-exec-hook' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureFlags = stdenv.lib.optionalString (!withGtk) "--without-gtk";
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ ncurses ] ++ optional withGtk gtk2;
|
buildInputs = [ ncurses ] ++ stdenv.lib.optional withGtk gtk2;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.bitwizard.nl/mtr/;
|
|
||||||
description = "A network diagnostics tool";
|
description = "A network diagnostics tool";
|
||||||
|
homepage = http://www.bitwizard.nl/mtr/;
|
||||||
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ koral orivej raskin ];
|
maintainers = with maintainers; [ koral orivej raskin ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.gpl2;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user