@@ -2,7 +2,7 @@
22, gnome3, libnotify, intltool, itstool, glib, gtk3, libxml2
33, coreutils, libsecret, pcre, libxkbcommon, wrapGAppsHook
44, libpthreadstubs, libXdmcp, epoxy, at_spi2_core, dbus, libgpgerror
5−, appstream-glib, desktop_file_utils, atk, pango, duplicity
5+, appstream-glib, desktop_file_utils, duplicity
66}:
77
88stdenv.mkDerivation rec {
@@ -44,29 +44,15 @@ stdenv.mkDerivation rec {
4444 glib-compile-schemas $out/share/glib-2.0/schemas
4545 '';
4646
47− # Manual rpath definition until https://github.com/mesonbuild/meson/issues/314 is fixed
48− postFixup =
49− let
50− rpath = stdenv.lib.makeLibraryPath [
51− glib
52− gtk3
53− gnome3.gnome_online_accounts
54− gnome3.libpeas
55− gnome3.nautilus
56− libgpgerror
57− libsecret
58− # Transitive
59− atk
60− pango
61− ];
62− in ''
63− # Unwrap accidentally wrapped library
64− mv $out/libexec/deja-dup/tools/.libduplicity.so-wrapped $out/libexec/deja-dup/tools/libduplicity.so
47+ postFixup = ''
48+ # Unwrap accidentally wrapped library
49+ mv $out/libexec/deja-dup/tools/.libduplicity.so-wrapped $out/libexec/deja-dup/tools/libduplicity.so
6550
66− for elf in "$out"/bin/.*-wrapped "$out"/libexec/deja-dup/.deja-dup-monitor-wrapped "$out"/libexec/deja-dup/tools/*.so "$out"/lib/deja-dup/*.so "$out"/lib/nautilus/extensions-3.0/*.so; do
67− patchelf --set-rpath '${rpath}':"$out/lib/deja-dup" "$elf"
68− done
69− '';
51+ # Patched meson does not add internal libraries to rpath
52+ for elf in "$out/bin/.deja-dup-wrapped" "$out/libexec/deja-dup/.deja-dup-monitor-wrapped" "$out/libexec/deja-dup/tools/libduplicity.so"; do
53+ patchelf --set-rpath "$(patchelf --print-rpath "$elf"):$out/lib/deja-dup" "$elf"
54+ done
55+ '';
7056
7157 meta = with stdenv.lib; {
7258 description = "A simple backup tool";