2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, python3
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, libgee
|
|
|
|
, bamf
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, gnome-desktop
|
2023-02-22 10:55:15 +00:00
|
|
|
, mesa
|
2020-04-24 23:36:52 +00:00
|
|
|
, mutter
|
2021-09-22 15:38:15 +00:00
|
|
|
, gnome-settings-daemon
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
2021-09-22 15:38:15 +00:00
|
|
|
, gexiv2
|
2023-07-15 17:15:38 +00:00
|
|
|
, systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gala";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "7.1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-0fDbR28gh7F8Bcnofn48BBP1CTsYnfmY5kG72ookOXw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
2022-04-15 01:41:22 +00:00
|
|
|
# We look for plugins in `/run/current-system/sw/lib/` because
|
|
|
|
# there are multiple plugin providers (e.g. gala and wingpanel).
|
2021-12-06 16:07:01 +00:00
|
|
|
./plugins-dir.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
2021-09-22 15:38:15 +00:00
|
|
|
gnome-settings-daemon
|
|
|
|
gexiv2
|
2020-09-25 04:45:31 +00:00
|
|
|
gnome-desktop
|
2020-04-24 23:36:52 +00:00
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libcanberra-gtk3
|
|
|
|
libgee
|
2023-02-22 10:55:15 +00:00
|
|
|
mesa # for libEGL
|
2020-04-24 23:36:52 +00:00
|
|
|
mutter
|
2023-07-15 17:15:38 +00:00
|
|
|
systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/post_install.py
|
|
|
|
patchShebangs build-aux/meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A window & compositing manager based on mutter and designed by elementary for use with Pantheon";
|
|
|
|
homepage = "https://github.com/elementary/gala";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "gala";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|