1 { lib, fetchFromGitHub, qmake
2 , coreutils, xdg-utils, bash
3 , makeWrapper, perlPackages, mkDerivation }:
9 src = fetchFromGitHub {
10 owner = "shundhammer";
13 sha256 = "sha256-yWv41iWtdTdlFuvLHKCbwmnSXq7Z5pIJq28GMDltdxM=";
18 inherit pname version src;
20 nativeBuildInputs = [ qmake makeWrapper ];
22 buildInputs = [ perlPackages.perl ];
25 substituteInPlace scripts/scripts.pro \
26 --replace /bin/true ${coreutils}/bin/true
28 for i in src/SysUtil.cpp src/FileSizeStatsWindow.cpp
30 substituteInPlace $i \
31 --replace /usr/bin/xdg-open ${xdg-utils}/bin/xdg-open
33 for i in src/Cleanup.cpp src/cleanup-config-page.ui
35 substituteInPlace $i \
36 --replace /bin/bash ${bash}/bin/bash \
37 --replace /bin/sh ${bash}/bin/sh
39 substituteInPlace src/StdCleanup.cpp \
40 --replace /bin/bash ${bash}/bin/bash
43 qmakeFlags = [ "INSTALL_PREFIX=${placeholder "out"}" ];
46 wrapProgram $out/bin/qdirstat-cache-writer \
47 --set PERL5LIB "${perlPackages.makePerlPath [ perlPackages.URI ]}"
51 description = "Graphical disk usage analyzer";
52 homepage = src.meta.homepage;
53 license = licenses.gpl2Plus;
54 maintainers = with maintainers; [ ];
55 platforms = platforms.linux;