xfce.thunar: Move away from mkXfceDerivation
To reduce the diff when build system change comes. mkXfceDerivation is generally pointless with meson.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{
|
||||
stdenv,
|
||||
mkXfceDerivation,
|
||||
lib,
|
||||
fetchFromGitLab,
|
||||
docbook_xsl,
|
||||
gettext,
|
||||
exo,
|
||||
gdk-pixbuf,
|
||||
gtk3,
|
||||
@@ -14,25 +15,43 @@
|
||||
libxfce4util,
|
||||
libxslt,
|
||||
pcre2,
|
||||
pkg-config,
|
||||
xfce4-dev-tools,
|
||||
xfce4-panel,
|
||||
xfconf,
|
||||
wrapGAppsHook3,
|
||||
withIntrospection ?
|
||||
lib.meta.availableOn stdenv.hostPlatform gobject-introspection
|
||||
&& stdenv.hostPlatform.emulatorAvailable buildPackages,
|
||||
buildPackages,
|
||||
gobject-introspection,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
mkXfceDerivation {
|
||||
category = "xfce";
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "thunar";
|
||||
version = "4.20.6";
|
||||
|
||||
sha256 = "sha256-Ll1mJEkkxYGASWQ2z7GRiubNjggqeHXzgGSXQK+10qs=";
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.xfce.org";
|
||||
owner = "xfce";
|
||||
repo = "thunar";
|
||||
tag = "thunar-${finalAttrs.version}";
|
||||
hash = "sha256-Ll1mJEkkxYGASWQ2z7GRiubNjggqeHXzgGSXQK+10qs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
docbook_xsl
|
||||
gettext
|
||||
libxslt
|
||||
pkg-config
|
||||
xfce4-dev-tools
|
||||
wrapGAppsHook3
|
||||
]
|
||||
++ lib.optionals withIntrospection [
|
||||
gobject-introspection
|
||||
@@ -53,7 +72,12 @@ mkXfceDerivation {
|
||||
xfconf
|
||||
];
|
||||
|
||||
configureFlags = [ "--with-custom-thunarx-dirs-enabled" ];
|
||||
configureFlags = [
|
||||
"--enable-maintainer-mode"
|
||||
"--with-custom-thunarx-dirs-enabled"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# the desktop file … is in an insecure location»
|
||||
# which pops up when invoking desktop files that are
|
||||
@@ -72,9 +96,17 @@ mkXfceDerivation {
|
||||
)
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "thunar-";
|
||||
odd-unstable = true;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Xfce file manager";
|
||||
homepage = "https://gitlab.xfce.org/xfce/thunar";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
mainProgram = "thunar";
|
||||
platforms = lib.platforms.linux;
|
||||
teams = [ lib.teams.xfce ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user