3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/pantheon/desktop/gala/default.nix

101 lines
1.9 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, nix-update-script
2021-01-17 02:21:50 +00:00
, pkg-config
, meson
, python3
, ninja
, vala
, desktop-file-utils
, gettext
, libxml2
, gtk3
, granite
, libgee
, bamf
, libcanberra-gtk3
, gnome-desktop
, mutter
, clutter
, elementary-icon-theme
2021-07-17 08:37:19 +01:00
, gnome-settings-daemon
, wrapGAppsHook
2021-07-17 08:37:19 +01:00
, gexiv2
}:
2018-08-20 21:31:18 +01:00
stdenv.mkDerivation rec {
pname = "gala";
2021-11-24 01:26:31 +00:00
version = "6.3.0";
2018-08-20 21:31:18 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-11-24 01:26:31 +00:00
sha256 = "sha256-f/WDm9/+lXgplg9tGpct4f+1cOhKgdypwiDRBhewRGw=";
2018-08-20 21:31:18 +01:00
};
patches = [
./plugins-dir.patch
2021-11-24 01:26:31 +00:00
# Session crashes when switching windows with Alt+Tab
# https://github.com/elementary/gala/issues/1312
(fetchpatch {
2021-11-24 01:26:31 +00:00
url = "https://github.com/elementary/gala/commit/cc83db8fe398feae9f3e4caa8352b65f0c8c96d4.patch";
sha256 = "sha256-CPO3EHIzqHAV6ZLHngivCdsD8je8CK/NHznfxSEkhzc=";
})
];
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
elementary-icon-theme
2021-07-17 08:37:19 +01:00
gnome-settings-daemon
gexiv2
gnome-desktop
2018-08-20 21:31:18 +01:00
granite
gtk3
libcanberra-gtk3
libgee
mutter
];
2021-11-24 01:26:31 +00:00
mesonFlags = [
# TODO: enable this and remove --builtin flag from session-settings
# https://github.com/NixOS/nixpkgs/pull/140429
"-Dsystemd=false"
];
2018-08-20 21:31:18 +01: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 01:26:31 +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";
homepage = "https://github.com/elementary/gala";
2018-08-20 21:31:18 +01:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2021-10-28 03:47:36 +01:00
mainProgram = "gala";
2018-08-20 21:31:18 +01:00
};
}