summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2017-10-24 06:46:49 -0500
committerThomas Tuegel <ttuegel@mailbox.org>2017-11-07 07:18:50 -0600
commita055cee512434aa7ce8b95c17a6f767c60059191 (patch)
treec787c5fd0acd0d98eea339898703e24e691afa96
parentd3c11c512c5afd93665177a3fd4de747690db0b0 (diff)
downloadnixlib-a055cee512434aa7ce8b95c17a6f767c60059191.tar
nixlib-a055cee512434aa7ce8b95c17a6f767c60059191.tar.gz
nixlib-a055cee512434aa7ce8b95c17a6f767c60059191.tar.bz2
nixlib-a055cee512434aa7ce8b95c17a6f767c60059191.tar.lz
nixlib-a055cee512434aa7ce8b95c17a6f767c60059191.tar.xz
nixlib-a055cee512434aa7ce8b95c17a6f767c60059191.tar.zst
nixlib-a055cee512434aa7ce8b95c17a6f767c60059191.zip
rockbox_utility: fix path to lrelease
-rw-r--r--pkgs/tools/misc/rockbox-utility/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/misc/rockbox-utility/default.nix b/pkgs/tools/misc/rockbox-utility/default.nix
index f84b9563967f..32f5a551dfe3 100644
--- a/pkgs/tools/misc/rockbox-utility/default.nix
+++ b/pkgs/tools/misc/rockbox-utility/default.nix
@@ -2,6 +2,8 @@
 , qtbase, qttools, makeWrapper, qmake
 , withEspeak ? false, espeak ? null }:
 
+let inherit (stdenv.lib) getDev; in
+
 stdenv.mkDerivation  rec {
   name = "rockbox-utility-${version}";
   version = "1.4.0";
@@ -15,6 +17,11 @@ stdenv.mkDerivation  rec {
     ++ stdenv.lib.optional withEspeak espeak;
   nativeBuildInputs = [ makeWrapper pkgconfig qmake ];
 
+  postPatch = ''
+    sed -i rbutil/rbutilqt/rbutilqt.pro \
+        -e '/^lrelease.commands =/ s|$$\[QT_INSTALL_BINS\]/lrelease -silent|${getDev qttools}/bin/lrelease|'
+  '';
+
   preConfigure = ''
     cd rbutil/rbutilqt
   '';