12 libsForQt5.mkDerivation rec {
16 src = fetchFromGitHub {
17 owner = "shundhammer";
20 hash = "sha256-pwdmltHDNwUMx1FNOoiXl5Pna0zlKqahmicBCN6UVSU=";
23 nativeBuildInputs = [ makeWrapper ] ++ (with libsForQt5; [ qmake ]);
25 buildInputs = [ perlPackages.perl ];
28 substituteInPlace scripts/scripts.pro \
29 --replace /bin/true ${coreutils}/bin/true
31 for i in src/SysUtil.cpp src/FileSizeStatsWindow.cpp
33 substituteInPlace $i \
34 --replace /usr/bin/xdg-open ${xdg-utils}/bin/xdg-open
36 for i in src/Cleanup.cpp src/cleanup-config-page.ui
38 substituteInPlace $i \
39 --replace /bin/bash ${bash}/bin/bash \
40 --replace /bin/sh ${bash}/bin/sh
42 substituteInPlace src/StdCleanup.cpp \
43 --replace /bin/bash ${bash}/bin/bash
46 qmakeFlags = [ "INSTALL_PREFIX=${placeholder "out"}" ];
49 wrapProgram $out/bin/qdirstat-cache-writer \
50 --set PERL5LIB "${perlPackages.makePerlPath [ perlPackages.URI ]}"
54 description = "Graphical disk usage analyzer";
55 homepage = "https://github.com/shundhammer/qdirstat";
56 license = licenses.gpl2Plus;
57 maintainers = with maintainers; [ donovanglover ];
58 platforms = platforms.linux;
59 mainProgram = "qdirstat";