10 name = "thunar-with-plugins-${thunar.version}";
12 paths = [ thunar ] ++ thunarPlugins;
14 nativeBuildInputs = [ makeWrapper ];
17 wrapProgram "$out/bin/thunar" \
18 --set "THUNARX_DIRS" "$out/lib/thunarx-3"
20 wrapProgram "$out/bin/thunar-settings" \
21 --set "THUNARX_DIRS" "$out/lib/thunarx-3"
23 # NOTE: we need to remove the folder symlink itself and create
24 # a new folder before trying to substitute any file below.
25 rm -f "$out/lib/systemd/user"
26 mkdir -p "$out/lib/systemd/user"
28 # point to wrapped binary in all service files
29 for file in "lib/systemd/user/thunar.service" \
30 "share/dbus-1/services/org.xfce.FileManager.service" \
31 "share/dbus-1/services/org.xfce.Thunar.FileManager1.service" \
32 "share/dbus-1/services/org.xfce.Thunar.service"
35 substitute "${thunar}/$file" "$out/$file" \
36 --replace "${thunar}" "$out"
49 thunar.meta.description
51 optionalString (0 != length thunarPlugins)
52 " (with plugins: ${concatStringsSep ", " (map (x: x.name) thunarPlugins)})";