nixpkgs/pkgs/applications/misc/k4dirstat/default.nix

42 lines
913 B
Nix
Raw Normal View History

2020-06-23 10:33:55 +00:00
{ mkDerivation
, extra-cmake-modules
, fetchFromGitHub
, kdoctools
, kiconthemes
, kio
, kjobwidgets
, kxmlgui
, lib
2021-09-10 08:21:43 +00:00
, testVersion
, k4dirstat
2020-06-23 10:33:55 +00:00
}:
mkDerivation rec {
pname = "k4dirstat";
2021-09-10 08:21:43 +00:00
version = "3.3.0";
2020-06-23 10:33:55 +00:00
src = fetchFromGitHub {
owner = "jeromerobert";
repo = pname;
rev = version;
2021-09-10 08:21:43 +00:00
hash = "sha256-KLvWSDv4x0tMhAPqp8yNQed2i7R0MPbvadHddSJ1Nx4=";
2020-06-23 10:33:55 +00:00
};
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ kiconthemes kio kjobwidgets kxmlgui ];
2021-09-10 08:21:43 +00:00
passthru.tests.version =
testVersion {
package = k4dirstat;
command = "k4dirstat -platform offscreen --version &>/dev/stdout";
};
meta = with lib; {
2020-06-23 10:33:55 +00:00
homepage = "https://github.com/jeromerobert/k4dirstat";
description = "A small utility program that sums up disk usage for directory trees";
license = licenses.gpl2;
maintainers = [ maintainers.raboof ];
platforms = platforms.linux;
};
}