nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 954 B view raw
1{ 2 mkDerivation, 3 extra-cmake-modules, 4 fetchFromGitHub, 5 kiconthemes, 6 kio, 7 kjobwidgets, 8 kxmlgui, 9 lib, 10 testers, 11 k4dirstat, 12}: 13 14mkDerivation rec { 15 pname = "k4dirstat"; 16 version = "3.4.3"; 17 18 src = fetchFromGitHub { 19 owner = "jeromerobert"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-TXMUtiPS7qRLm6cCy2ZntYrcNJ0fn6X+3o3P5u7oo08="; 23 }; 24 25 nativeBuildInputs = [ extra-cmake-modules ]; 26 buildInputs = [ 27 kiconthemes 28 kio 29 kjobwidgets 30 kxmlgui 31 ]; 32 33 passthru.tests.version = testers.testVersion { 34 package = k4dirstat; 35 command = "k4dirstat -platform offscreen --version &>/dev/stdout"; 36 }; 37 38 meta = with lib; { 39 homepage = "https://github.com/jeromerobert/k4dirstat"; 40 description = "Small utility program that sums up disk usage for directory trees"; 41 mainProgram = "k4dirstat"; 42 license = licenses.gpl2; 43 maintainers = [ maintainers.raboof ]; 44 platforms = platforms.linux; 45 }; 46}