2019-07-28 10:08:18 -07:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
|
|
|
, tokyocabinet, ncurses
|
|
|
|
, cairo ? null, pango ? null
|
|
|
|
, enableCairo ? stdenv.isLinux
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableCairo -> cairo != null && pango != null;
|
2016-04-09 11:08:26 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "duc";
|
2018-10-06 07:02:25 -07:00
|
|
|
version = "1.4.4";
|
2016-04-09 11:08:26 -07:00
|
|
|
|
2016-06-05 06:57:28 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zevv";
|
|
|
|
repo = "duc";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2018-10-06 07:02:25 -07:00
|
|
|
sha256 = "1i7ry25xzy027g6ysv6qlf09ax04q4vy0kikl8h0aq5jbxsl9q52";
|
2016-04-09 11:08:26 -07:00
|
|
|
};
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2019-07-28 10:08:18 -07:00
|
|
|
buildInputs = [ tokyocabinet ncurses ] ++
|
|
|
|
stdenv.lib.optionals enableCairo [ cairo pango ];
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
stdenv.lib.optionals (!enableCairo) [ "--disable-x11" "--disable-cairo" ];
|
2016-04-09 11:08:26 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://duc.zevv.nl/";
|
2016-04-09 11:08:26 -07:00
|
|
|
description = "Collection of tools for inspecting and visualizing disk usage";
|
2016-04-09 12:35:29 -07:00
|
|
|
license = licenses.gpl2;
|
2016-04-09 11:08:26 -07:00
|
|
|
|
2019-07-28 10:08:18 -07:00
|
|
|
platforms = platforms.all;
|
2016-04-09 11:08:26 -07:00
|
|
|
maintainers = [ maintainers.lethalman ];
|
|
|
|
};
|
|
|
|
}
|