2021-10-28 02:54:39 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 19:02:06 +01:00
|
|
|
, fetchFromGitHub
|
2021-10-28 02:54:39 +01:00
|
|
|
, fetchpatch
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-08-05 19:02:06 +01:00
|
|
|
, pantheon
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-08-05 19:02:06 +01:00
|
|
|
, meson
|
|
|
|
, python3
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, libgee
|
|
|
|
, bamf
|
|
|
|
, libcanberra
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, gnome-desktop
|
|
|
|
, mutter
|
|
|
|
, clutter
|
2020-09-04 02:46:19 +01:00
|
|
|
, elementary-dock
|
2019-08-05 19:02:06 +01:00
|
|
|
, elementary-icon-theme
|
|
|
|
, elementary-settings-daemon
|
2021-07-17 08:37:19 +01:00
|
|
|
, gnome-settings-daemon
|
2019-08-05 19:02:06 +01:00
|
|
|
, wrapGAppsHook
|
2021-07-17 08:37:19 +01:00
|
|
|
, gexiv2
|
2019-08-05 19:02:06 +01:00
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gala";
|
2021-09-30 01:51:45 +01:00
|
|
|
version = "6.2.1";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
2020-01-08 01:21:15 +00:00
|
|
|
rev = version;
|
2021-09-30 01:51:45 +01:00
|
|
|
sha256 = "1phnhj731kvk8ykmm33ypcxk8fkfny9k6kdapl582qh4d47wcy6f";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
2021-10-28 02:54:39 +01:00
|
|
|
patches = [
|
|
|
|
./plugins-dir.patch
|
|
|
|
# Multitasking view: Don't use smooth scroll events to handle mouse wheel
|
|
|
|
# Avoid breaking the multitasking view scroll once xf86-input-libinput 1.2.0 lands
|
|
|
|
# https://github.com/elementary/gala/pull/1266
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/gala/commit/d2dcfdefdf97c1b49654179a7acd01ebfe017308.patch";
|
|
|
|
sha256 = "sha256-2lKrCz3fSjrfKfysuUHzeUjhmMm84K47n882CLpfAyg=";
|
|
|
|
})
|
|
|
|
];
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2018-08-20 21:31:18 +01:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
|
|
|
clutter
|
2020-09-04 02:46:19 +01:00
|
|
|
elementary-dock
|
2018-08-20 21:31:18 +01:00
|
|
|
elementary-icon-theme
|
|
|
|
elementary-settings-daemon
|
2021-07-17 08:37:19 +01:00
|
|
|
gnome-settings-daemon
|
|
|
|
gexiv2
|
2020-09-04 02:46:19 +01:00
|
|
|
gnome-desktop
|
2018-08-20 21:31:18 +01:00
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libcanberra
|
|
|
|
libcanberra-gtk3
|
|
|
|
libgee
|
|
|
|
mutter
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/post_install.py
|
|
|
|
patchShebangs build-aux/meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-10-28 02:54:39 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 21:31:18 +01:00
|
|
|
description = "A window & compositing manager based on mutter and designed by elementary for use with Pantheon";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/gala";
|
2018-08-20 21:31:18 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 16:00:51 +01:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-10-28 03:47:36 +01:00
|
|
|
mainProgram = "gala";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
}
|