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";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.4.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zevv";
|
|
|
|
repo = "duc";
|
|
|
|
rev = version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-ZLNsyp82UnsveEfDKzH8WfRh/Y/PQlXq8Ma+jIZl9Gk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
platforms = platforms.all;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "duc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|