13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
18 owner = "shundhammer";
21 hash = "sha256-pwdmltHDNwUMx1FNOoiXl5Pna0zlKqahmicBCN6UVSU=";
26 ++ (with libsForQt5; [
31 buildInputs = [ perlPackages.perl ];
34 substituteInPlace scripts/scripts.pro \
35 --replace /bin/true ${coreutils}/bin/true
37 for i in src/SysUtil.cpp src/FileSizeStatsWindow.cpp
39 substituteInPlace $i \
40 --replace /usr/bin/xdg-open ${xdg-utils}/bin/xdg-open
42 for i in src/Cleanup.cpp src/cleanup-config-page.ui
44 substituteInPlace $i \
45 --replace /bin/bash ${bash}/bin/bash \
46 --replace /bin/sh ${bash}/bin/sh
48 substituteInPlace src/StdCleanup.cpp \
49 --replace /bin/bash ${bash}/bin/bash
52 qmakeFlags = [ "INSTALL_PREFIX=${placeholder "out"}" ];
55 wrapProgram $out/bin/qdirstat-cache-writer \
56 --set PERL5LIB "${perlPackages.makePerlPath [ perlPackages.URI ]}"
60 description = "Graphical disk usage analyzer";
61 homepage = "https://github.com/shundhammer/qdirstat";
62 license = licenses.gpl2Plus;
63 maintainers = with maintainers; [ donovanglover ];
64 platforms = platforms.linux;
65 mainProgram = "qdirstat";