qdirstat: 1.4 -> 1.5
This commit is contained in:
parent
1f18bb67b7
commit
9ee99d9f8f
@ -3,7 +3,7 @@
|
|||||||
, makeWrapper, perlPackages }:
|
, makeWrapper, perlPackages }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.4";
|
version = "1.5";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "qdirstat-${version}";
|
name = "qdirstat-${version}";
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ in stdenv.mkDerivation rec {
|
|||||||
owner = "shundhammer";
|
owner = "shundhammer";
|
||||||
repo = "qdirstat";
|
repo = "qdirstat";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "1ppasbr0mq301q6n3rm0bsmprs7vgkcjmmc0gbgqpgw84nmp9fqh";
|
sha256 = "1v879kd7zahalb2qazq61wzi364k5cy3lgy6c8wj6mclwxjws1vc";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake makeWrapper ];
|
nativeBuildInputs = [ qmake makeWrapper ];
|
||||||
@ -20,18 +20,9 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace scripts/scripts.pro \
|
substituteInPlace scripts/scripts.pro \
|
||||||
--replace /bin/true ${coreutils}/bin/true \
|
--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
|
|
||||||
|
|
||||||
for i in src/MainWindow.cpp src/FileSizeStatsWindow.cpp
|
for i in src/SysUtil.cpp src/FileSizeStatsWindow.cpp
|
||||||
do
|
do
|
||||||
substituteInPlace $i \
|
substituteInPlace $i \
|
||||||
--replace /usr/bin/xdg-open ${xdg_utils}/bin/xdg-open
|
--replace /usr/bin/xdg-open ${xdg_utils}/bin/xdg-open
|
||||||
@ -45,6 +36,9 @@ in stdenv.mkDerivation rec {
|
|||||||
substituteInPlace src/StdCleanup.cpp \
|
substituteInPlace src/StdCleanup.cpp \
|
||||||
--replace /bin/bash ${bash}/bin/bash
|
--replace /bin/bash ${bash}/bin/bash
|
||||||
'';
|
'';
|
||||||
|
postPatch = ''
|
||||||
|
export qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out"
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/qdirstat-cache-writer \
|
wrapProgram $out/bin/qdirstat-cache-writer \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user