depot/third_party/nixpkgs/pkgs/applications/misc/k4dirstat/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

40 lines
905 B
Nix

{ mkDerivation
, extra-cmake-modules
, fetchFromGitHub
, kiconthemes
, kio
, kjobwidgets
, kxmlgui
, lib
, testers
, k4dirstat
}:
mkDerivation rec {
pname = "k4dirstat";
version = "3.4.2";
src = fetchFromGitHub {
owner = "jeromerobert";
repo = pname;
rev = version;
hash = "sha256-nedtCa3h62pAmJYGIYp9jkNYiqe9WevVjwNAqVaaFuc=";
};
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ kiconthemes kio kjobwidgets kxmlgui ];
passthru.tests.version =
testers.testVersion {
package = k4dirstat;
command = "k4dirstat -platform offscreen --version &>/dev/stdout";
};
meta = with lib; {
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;
};
}