2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libgtop
|
|
|
|
, libXdamage
|
|
|
|
, libXpresent
|
2023-02-02 18:25:31 +00:00
|
|
|
, libXres
|
2022-08-12 12:06:08 +00:00
|
|
|
, libstartup_notification
|
|
|
|
, gnome
|
|
|
|
, glib
|
|
|
|
, gtk3
|
2024-04-21 15:54:59 +00:00
|
|
|
, mate-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
, mate-settings-daemon
|
|
|
|
, wrapGAppsHook
|
|
|
|
, mateUpdateScript
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "marco";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.28.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "JJbl5A7pgM1oSUk6w+D4/Q3si4HGdNqNm6GaV38KwuE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
libcanberra-gtk3
|
|
|
|
libgtop
|
2021-04-26 19:14:03 +00:00
|
|
|
libXdamage
|
|
|
|
libXpresent
|
2023-02-02 18:25:31 +00:00
|
|
|
libXres
|
2020-04-24 23:36:52 +00:00
|
|
|
libstartup_notification
|
|
|
|
gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.zenity
|
2024-04-21 15:54:59 +00:00
|
|
|
mate-desktop
|
2020-04-24 23:36:52 +00:00
|
|
|
mate-settings-daemon
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/core/util.c \
|
|
|
|
--replace-fail 'argvl[i++] = "zenity"' 'argvl[i++] = "${gnome.zenity}/bin/zenity"'
|
|
|
|
'';
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "MATE default window manager";
|
|
|
|
homepage = "https://github.com/mate-desktop/marco";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = [ licenses.gpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = teams.mate.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|