nixpkgs/pkgs/tools/misc/duc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
894 B
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
, tokyocabinet, ncurses
, cairo ? null, pango ? null
, enableCairo ? stdenv.isLinux
}:
assert enableCairo -> cairo != null && pango != null;
2016-04-09 18:08:26 +00:00
stdenv.mkDerivation rec {
pname = "duc";
2022-07-28 05:20:53 +00:00
version = "1.4.5";
2016-04-09 18:08:26 +00:00
2016-06-05 13:57:28 +00:00
src = fetchFromGitHub {
owner = "zevv";
repo = "duc";
2019-09-08 23:38:31 +00:00
rev = version;
2022-07-28 05:20:53 +00:00
sha256 = "sha256-ZLNsyp82UnsveEfDKzH8WfRh/Y/PQlXq8Ma+jIZl9Gk=";
2016-04-09 18:08:26 +00:00
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ tokyocabinet ncurses ] ++
2021-01-15 09:19:50 +00:00
lib.optionals enableCairo [ cairo pango ];
configureFlags =
2021-01-15 09:19:50 +00:00
lib.optionals (!enableCairo) [ "--disable-x11" "--disable-cairo" ];
2016-04-09 18:08:26 +00:00
meta = with lib; {
homepage = "http://duc.zevv.nl/";
2016-04-09 18:08:26 +00:00
description = "Collection of tools for inspecting and visualizing disk usage";
2016-04-09 19:35:29 +00:00
license = licenses.gpl2;
2016-04-09 18:08:26 +00:00
platforms = platforms.all;
maintainers = [ ];
2016-04-09 18:08:26 +00:00
};
}