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

103 lines
2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, nix-update-script
, pantheon
2021-01-17 02:21:50 +00:00
, pkg-config
, meson
, python3
, ninja
, vala
, desktop-file-utils
, gettext
, libxml2
, gtk3
, granite
, libgee
, bamf
, libcanberra
, libcanberra-gtk3
, gnome-desktop
, mutter
, clutter
, elementary-dock
, elementary-icon-theme
, elementary-settings-daemon
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-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;
rev = version;
2021-09-30 01:51:45 +01:00
sha256 = "1phnhj731kvk8ykmm33ypcxk8fkfny9k6kdapl582qh4d47wcy6f";
2018-08-20 21:31:18 +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
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
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
'';
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";
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
};
}