qdirstat: 1.4 -> 1.5

This commit is contained in:
gnidorah 2019-01-11 22:31:36 +03:00
parent 1f18bb67b7
commit 9ee99d9f8f

View File

@ -3,7 +3,7 @@
, makeWrapper, perlPackages }:
let
version = "1.4";
version = "1.5";
in stdenv.mkDerivation rec {
name = "qdirstat-${version}";
@ -11,7 +11,7 @@ in stdenv.mkDerivation rec {
owner = "shundhammer";
repo = "qdirstat";
rev = "${version}";
sha256 = "1ppasbr0mq301q6n3rm0bsmprs7vgkcjmmc0gbgqpgw84nmp9fqh";
sha256 = "1v879kd7zahalb2qazq61wzi364k5cy3lgy6c8wj6mclwxjws1vc";
};
nativeBuildInputs = [ qmake makeWrapper ];
@ -20,18 +20,9 @@ in stdenv.mkDerivation rec {
preBuild = ''
substituteInPlace scripts/scripts.pro \
--replace /bin/true ${coreutils}/bin/true \
--replace /usr/bin $out/bin
substituteInPlace src/src.pro \
--replace /usr/bin $out/bin \
--replace /usr/share $out/share
for i in doc/doc.pro doc/stats/stats.pro
do
substituteInPlace $i \
--replace /usr/share $out/share
done
--replace /bin/true ${coreutils}/bin/true
for i in src/MainWindow.cpp src/FileSizeStatsWindow.cpp
for i in src/SysUtil.cpp src/FileSizeStatsWindow.cpp
do
substituteInPlace $i \
--replace /usr/bin/xdg-open ${xdg_utils}/bin/xdg-open
@ -45,6 +36,9 @@ in stdenv.mkDerivation rec {
substituteInPlace src/StdCleanup.cpp \
--replace /bin/bash ${bash}/bin/bash
'';
postPatch = ''
export qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out"
'';
postInstall = ''
wrapProgram $out/bin/qdirstat-cache-writer \