1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/tools/misc/duc/default.nix

36 lines
931 B
Nix
Raw Normal View History

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