diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-03-16 18:01:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 18:01:00 +0000 |
commit | 60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c (patch) | |
tree | 3069dc9f915b1c766b5dc30be6d319186a8e4f8d /pkgs/desktops/mate/mate-wayland-session/default.nix | |
parent | 9db4d8431217189d40b01a18ba71c67e2975c0ef (diff) | |
parent | 9d77cc0d53c3f982249e342d100837da73a81520 (diff) | |
download | nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.tar nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.tar.gz nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.tar.bz2 nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.tar.lz nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.tar.xz nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.tar.zst nixlib-60fbf92c10dd8bd5bf1d5f6f61a10221add2db5c.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/desktops/mate/mate-wayland-session/default.nix')
-rw-r--r-- | pkgs/desktops/mate/mate-wayland-session/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/desktops/mate/mate-wayland-session/default.nix b/pkgs/desktops/mate/mate-wayland-session/default.nix new file mode 100644 index 000000000000..b803caa7048f --- /dev/null +++ b/pkgs/desktops/mate/mate-wayland-session/default.nix @@ -0,0 +1,58 @@ +{ stdenvNoCC +, lib +, fetchFromGitHub +, meson +, ninja +, glib +, mate-polkit +, mate-notification-daemon +, wayfire +, wayfirePlugins +, gitUpdater +}: + +stdenvNoCC.mkDerivation rec { + pname = "mate-wayland-session"; + version = "1.28.3"; + + src = fetchFromGitHub { + owner = "mate-desktop"; + repo = "mate-wayland-session"; + rev = "v${version}"; + hash = "sha256-sUAq2BylsvjYn8Lt+nm4yIfVhzIEefxKZYnhJnuxjs0="; + }; + + nativeBuildInputs = [ + meson + ninja + glib + ]; + + postPatch = '' + substituteInPlace session/mate-wayland-components.sh \ + --replace-fail "polkit-mate-authentication-agent-1" "${mate-polkit}/libexec/polkit-mate-authentication-agent-1" \ + --replace-fail "mate-notification-daemon" "${mate-notification-daemon}/libexec/mate-notification-daemon" \ + --replace-fail "cat /usr/bin/blueman-applet" "command -v blueman-applet" \ + --replace-fail "cat /usr/bin/gnome-keyring-daemon" "command -v gnome-keyring-daemon" + + # Ensure wayfire.ini is writable, as this script tries to modify it later. + substituteInPlace session/mate-wayland.sh \ + --replace-fail "cp /usr/share/doc/wayfire/examples/wayfire.ini" "cp --no-preserve=mode,ownership ${wayfire.src}/wayfire.ini" \ + --replace-fail "/usr/share/doc/wayfire/examples/wayfire.ini" "${wayfire.src}/wayfire.ini" \ + --replace-fail "/usr/lib/x86_64-linux-gnu/wayfire/libfiredecor.so" "${wayfirePlugins.firedecor}/lib/wayfire/libfiredecor.so" \ + --replace-fail "/usr/share/doc/firedecor/firedecor.config" "$out/share/doc/firedecor/firedecor.config" + ''; + + passthru = { + providedSessions = [ "MATE" ]; + updateScript = gitUpdater { rev-prefix = "v"; }; + }; + + meta = with lib; { + description = "Wayland session using Wayfire for the MATE desktop"; + homepage = "https://mate-desktop.org"; + license = licenses.gpl2Plus; + platforms = platforms.unix; + maintainers = teams.mate.members; + }; +} |