Merge pull request #65517 from arcnmx/pr-duc-cli
duc: optional x11/cairo
This commit is contained in:
commit
9a7492665b
1 changed files with 13 additions and 3 deletions
|
@ -1,4 +1,10 @@
|
||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, tokyocabinet, cairo, pango, ncurses }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
||||||
|
, tokyocabinet, ncurses
|
||||||
|
, cairo ? null, pango ? null
|
||||||
|
, enableCairo ? stdenv.isLinux
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert enableCairo -> cairo != null && pango != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "duc-${version}";
|
name = "duc-${version}";
|
||||||
|
@ -12,14 +18,18 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
buildInputs = [ tokyocabinet cairo pango ncurses ];
|
buildInputs = [ tokyocabinet ncurses ] ++
|
||||||
|
stdenv.lib.optionals enableCairo [ cairo pango ];
|
||||||
|
|
||||||
|
configureFlags =
|
||||||
|
stdenv.lib.optionals (!enableCairo) [ "--disable-x11" "--disable-cairo" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://duc.zevv.nl/;
|
homepage = http://duc.zevv.nl/;
|
||||||
description = "Collection of tools for inspecting and visualizing disk usage";
|
description = "Collection of tools for inspecting and visualizing disk usage";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.lethalman ];
|
maintainers = [ maintainers.lethalman ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue