forked from mirrors/nixpkgs
ac70cd728c
All code that was at xfce4-14 has been moved to xfce/*. Old expressions that aren't rewritten might be abandoned or broken. Additonally I've ported the xfce4-14 thunar expression to support thunarPlugins. We can now support this interface in the Xfce module again, although I'm not sure if we have any plugins packaged that support latest thunar.
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ makeWrapper, symlinkJoin, thunar, thunarPlugins, lib }:
|
|
|
|
symlinkJoin {
|
|
name = "thunar-with-plugins-${thunar.version}";
|
|
|
|
paths = [ thunar ] ++ thunarPlugins;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram "$out/bin/thunar" \
|
|
--set "THUNARX_MODULE_DIR" "$out/lib/thunarx-3"
|
|
|
|
wrapProgram "$out/bin/thunar-settings" \
|
|
--set "THUNARX_MODULE_DIR" "$out/lib/thunarx-3"
|
|
|
|
for file in "lib/systemd/user/thunar.service" "share/dbus-1/services/org.xfce.FileManager.service" \
|
|
"share/dbus-1/services/org.xfce.Thunar.FileManager1.service" \
|
|
"share/dbus-1/services/org.xfce.Thunar.service"
|
|
do
|
|
rm -f "$out/$file"
|
|
substitute "${thunar}/$file" "$out/$file" \
|
|
--replace "${thunar}" "$out"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
inherit (thunar.meta) homepage license platforms maintainers;
|
|
|
|
description = thunar.meta.description + optionalString
|
|
(0 != length thunarPlugins)
|
|
" (with plugins: ${concatStrings (intersperse ", " (map (x: x.name) thunarPlugins))})";
|
|
};
|
|
}
|