Files
nixpkgs/pkgs/desktops/xfce/core/thunar/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

78 lines
1.5 KiB
Nix

{
stdenv,
mkXfceDerivation,
lib,
docbook_xsl,
exo,
gdk-pixbuf,
gtk3,
libexif,
libgudev,
libnotify,
libX11,
libxfce4ui,
libxfce4util,
libxslt,
pcre2,
xfce4-panel,
xfconf,
withIntrospection ? false,
gobject-introspection,
}:
mkXfceDerivation {
category = "xfce";
pname = "thunar";
version = "4.20.5";
sha256 = "sha256-Q8gzXRR2ZO98rbHhxnf472d8rGOLqEv7WP6LDONRgS0=";
nativeBuildInputs = [
docbook_xsl
libxslt
]
++ lib.optionals withIntrospection [
gobject-introspection
];
buildInputs = [
exo
gdk-pixbuf
gtk3
libX11
libexif # image properties page
libgudev
libnotify
libxfce4ui
libxfce4util
pcre2 # search & replace renamer
xfce4-panel # trash panel applet plugin
xfconf
];
configureFlags = [ "--with-custom-thunarx-dirs-enabled" ];
# the desktop file … is in an insecure location»
# which pops up when invoking desktop files that are
# symlinks to the /nix/store
#
# this error was added by this commit:
# https://github.com/xfce-mirror/thunar/commit/1ec8ff89ec5a3314fcd6a57f1475654ddecc9875
postPatch = ''
sed -i -e 's|thunar_dialogs_show_insecure_program (parent, _(".*"), file, exec)|1|' thunar/thunar-file.c
'';
preFixup = ''
gappsWrapperArgs+=(
# https://github.com/NixOS/nixpkgs/issues/329688
--prefix PATH : ${lib.makeBinPath [ exo ]}
)
'';
meta = with lib; {
description = "Xfce file manager";
mainProgram = "thunar";
teams = [ teams.xfce ];
};
}