2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchpatch
|
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
|
|
|
|
, mutter
|
|
|
|
, clutter
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gala";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "6.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-7RZt6gA3wyp1cxIWBYFK+fYFSZDbjHcwYa2snOmDw1Y=";
|
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
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# WindowManager: save/restore easing on workspace switch
|
|
|
|
# https://github.com/elementary/gala/pull/1430
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/gala/commit/1f94db16c627f73af5dc69714611815e4691b5e8.patch";
|
|
|
|
sha256 = "sha256-PLNbAXyOG0TMn1y2QIBnL6BOQVqBA+DBgPOVJo4nDr8=";
|
|
|
|
})
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
# WindowSwitcher: fix initial alt-tab switcher indicator visibility
|
|
|
|
# https://github.com/elementary/gala/pull/1417
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/gala/commit/e0095415cdbfc369e6482e84b8aaffc6a04cafe7.patch";
|
|
|
|
sha256 = "sha256-n/BJPIrUaCQtBgDotOLq/bCAAccdbL6OwciXY115HsM=";
|
|
|
|
})
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
# MultitaskingView: fix allocation assertions
|
|
|
|
# https://github.com/elementary/gala/pull/1463
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/gala/commit/23c7edeb0ee9b0ff0aa48c1d19fbd1739df7af78.patch";
|
|
|
|
sha256 = "sha256-OfIDBfVEZoY8vMu9F8gtfRg4TYA1MUAG94BSOBKVGcI=";
|
|
|
|
})
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
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
|
|
|
|
clutter
|
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
|
|
|
|
mutter
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
mesonFlags = [
|
|
|
|
# TODO: enable this and remove --builtin flag from session-settings
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/140429
|
|
|
|
"-Dsystemd=false"
|
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 = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|