From 3757a24ced4e427635bca790bd8567c9cbbe063e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Mon, 3 Oct 2016 18:39:38 -0300 Subject: [PATCH] lxqt: standard patch applied to several lxqt packages --- pkgs/desktops/lxqt/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/desktops/lxqt/default.nix b/pkgs/desktops/lxqt/default.nix index 61f1c85dc891..1216c81b872a 100644 --- a/pkgs/desktops/lxqt/default.nix +++ b/pkgs/desktops/lxqt/default.nix @@ -7,5 +7,23 @@ let # For compiling information, see: # - https://github.com/lxde/lxqt/wiki/Building-from-source + + standardPatch = '' + for file in $(find . -name CMakeLists.txt); do + substituteInPlace $file \ + --replace "DESTINATION \''${LXQT_ETC_XDG_DIR}" "DESTINATION etc/xdg" \ + --replace "DESTINATION \"\''${LXQT_ETC_XDG_DIR}" "DESTINATION \"etc/xdg" \ + --replace "DESTINATION \"\''${LXQT_SHARE_DIR}" "DESTINATION \"share/lxqt" \ + --replace "DESTINATION \"\''${LXQT_GRAPHICS_DIR}" "DESTINATION \"share/lxqt/graphhics" \ + --replace "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"lib/qt5/plugins" \ + --replace "\''${LXQT_TRANSLATIONS_DIR}" share/lxqt/translations + echo ============================ + echo $file + grep --color=always DESTINATION $file || true + grep --color=always share/lxqt/translations $file || true + grep --color=always platformthemes $file || true + done + echo -------------------------------------------------------- + ''; in self