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