xfce.xfce4-namebar-plugin: fix for the data dir fix

This commit is contained in:
José Romildo Malaquias 2021-02-28 15:14:41 -03:00
parent 67ea4a4d54
commit 933a3eb0a1

View File

@ -16,9 +16,8 @@ stdenv.mkDerivation rec {
buildInputs = [ gtk3 libwnck3 libxfce4util xfce4-panel ];
postPatch = ''
for f in src/preferences.vala src/namebar.vala; do
substituteInPlace $f --replace 'var dirs = Environment.get_system_data_dirs()' "string[] dirs = { \"$out/share\" }"
done
substituteInPlace src/namebar.vala --replace 'var dirs = Environment.get_system_data_dirs()' "string[] dirs = { \"$out/share\" }"
substituteInPlace src/preferences.vala --replace 'var dir_strings = Environment.get_system_data_dirs()' "string[] dir_strings = { \"$out/share\" }"
'';
passthru.updateScript = xfce.updateScript {