2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +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
|
|
|
|
, elementary-icon-theme
|
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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-f/WDm9/+lXgplg9tGpct4f+1cOhKgdypwiDRBhewRGw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
|
|
|
./plugins-dir.patch
|
|
|
|
# Session crashes when switching windows with Alt+Tab
|
|
|
|
# https://github.com/elementary/gala/issues/1312
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/gala/commit/cc83db8fe398feae9f3e4caa8352b65f0c8c96d4.patch";
|
|
|
|
sha256 = "sha256-CPO3EHIzqHAV6ZLHngivCdsD8je8CK/NHznfxSEkhzc=";
|
|
|
|
})
|
2021-12-19 01:06:50 +00:00
|
|
|
# WindowSwitcher: Clear indicator background
|
|
|
|
# https://github.com/elementary/gala/pull/1318
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/gala/commit/cce53acffecba795b6cc48916d4621a47996d2c9.patch";
|
|
|
|
sha256 = "sha256-5aTZE6poo4sQMTLfk9Nhw4G4BW8i9dvpWktizRIS58Q=";
|
|
|
|
})
|
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
|
|
|
|
elementary-icon-theme
|
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
|
|
|
};
|
|
|
|
}
|