qtkeychain: fix install_name_dir on Darwin

This commit is contained in:
Roman Plášil
2019-10-20 20:33:57 +08:00
parent dc2f24796e
commit 12484979e8
2 changed files with 11 additions and 1 deletions
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
sha256 = "0h4wgngn2yl35hapbjs24amkjfbzsvnna4ixfhn87snjnq5lmjbc"; # v0.9.1
};
patches = if withQt5 then null else [ ./0001-Fixes-build-with-Qt4.patch ];
patches = (if withQt5 then [] else [ ./0001-Fixes-build-with-Qt4.patch ]) ++ (if stdenv.isDarwin then [ ./0002-Fix-install-name-Darwin.patch ] else []);
cmakeFlags = [ "-DQT_TRANSLATIONS_DIR=share/qt/translations" ];