nixpkgs-suyu/pkgs/desktops/pantheon/desktop/gala/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

109 lines
2.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, nix-update-script
2021-01-17 03:21:50 +01:00
, pkg-config
, meson
, python3
, ninja
, vala
, desktop-file-utils
, gettext
, libxml2
, gtk3
, granite
, libgee
, bamf
, libcanberra-gtk3
, gnome-desktop
, mutter
, clutter
2021-07-17 09:37:19 +02:00
, gnome-settings-daemon
, wrapGAppsHook
2021-07-17 09:37:19 +02:00
, gexiv2
}:
2018-08-20 22:31:18 +02:00
stdenv.mkDerivation rec {
pname = "gala";
2022-04-07 14:11:28 +02:00
version = "6.3.1";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2022-04-07 14:11:28 +02:00
sha256 = "sha256-7RZt6gA3wyp1cxIWBYFK+fYFSZDbjHcwYa2snOmDw1Y=";
2018-08-20 22:31:18 +02:00
};
patches = [
2022-04-07 14:11:28 +02:00
# We look for plugins in `/run/current-system/sw/lib/` because
# there are multiple plugin providers (e.g. gala and wingpanel).
./plugins-dir.patch
# 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=";
})
# 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=";
})
];
2018-08-20 22:31:18 +02:00
nativeBuildInputs = [
desktop-file-utils
gettext
libxml2
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
2018-08-20 22:31:18 +02:00
python3
vala
wrapGAppsHook
];
buildInputs = [
bamf
clutter
2021-07-17 09:37:19 +02:00
gnome-settings-daemon
gexiv2
gnome-desktop
2018-08-20 22:31:18 +02:00
granite
gtk3
libcanberra-gtk3
libgee
mutter
];
2021-11-24 02:26:31 +01:00
mesonFlags = [
# TODO: enable this and remove --builtin flag from session-settings
# https://github.com/NixOS/nixpkgs/pull/140429
"-Dsystemd=false"
];
2018-08-20 22:31:18 +02:00
postPatch = ''
chmod +x build-aux/meson/post_install.py
patchShebangs build-aux/meson/post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
2021-11-24 02:26:31 +01:00
meta = with lib; {
2018-08-20 22:31:18 +02:00
description = "A window & compositing manager based on mutter and designed by elementary for use with Pantheon";
homepage = "https://github.com/elementary/gala";
2018-08-20 22:31:18 +02:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2021-10-28 04:47:36 +02:00
mainProgram = "gala";
2018-08-20 22:31:18 +02:00
};
}