Merge pull request #27801 from gnidorah/qdirstat

qdirstat: add script dependency
This commit is contained in:
Jörg Thalheim 2017-07-31 16:34:52 +01:00 committed by GitHub
commit b0ea683c92

View File

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, qmake
, coreutils, xdg_utils, bash, perl }:
, coreutils, xdg_utils, bash
, perl, makeWrapper, perlPackages }:
let
version = "1.4";
@ -13,7 +14,7 @@ in stdenv.mkDerivation rec {
sha256 = "1ppasbr0mq301q6n3rm0bsmprs7vgkcjmmc0gbgqpgw84nmp9fqh";
};
nativeBuildInputs = [ qmake ];
nativeBuildInputs = [ qmake makeWrapper ];
buildInputs = [ perl ];
@ -45,6 +46,11 @@ in stdenv.mkDerivation rec {
--replace /bin/bash ${bash}/bin/bash
'';
postInstall = ''
wrapProgram $out/bin/qdirstat-cache-writer \
--set PERL5LIB "${stdenv.lib.makePerlPath [ perlPackages.URI ]}"
'';
meta = with stdenv.lib; {
description = "Graphical disk usage analyzer";
homepage = src.meta.homepage;