2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, tokyocabinet, ncurses
|
|
|
|
, cairo ? null, pango ? null
|
|
|
|
, enableCairo ? stdenv.isLinux
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableCairo -> cairo != null && pango != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "duc";
|
|
|
|
version = "1.4.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zevv";
|
|
|
|
repo = "duc";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1i7ry25xzy027g6ysv6qlf09ax04q4vy0kikl8h0aq5jbxsl9q52";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ tokyocabinet ncurses ] ++
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.optionals enableCairo [ cairo pango ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags =
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.optionals (!enableCairo) [ "--disable-x11" "--disable-cairo" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://duc.zevv.nl/";
|
|
|
|
description = "Collection of tools for inspecting and visualizing disk usage";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
|
|
|
platforms = platforms.all;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|