tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mate.mate-wayland-session: init at 1.28.3
Bobby Rong
2 years ago
6865836c
148aa398
+59
2 changed files
expand all
collapse all
unified
split
pkgs
desktops
mate
default.nix
mate-wayland-session
default.nix
+1
pkgs/desktops/mate/default.nix
···
50
mate-user-guide = callPackage ./mate-user-guide { };
51
mate-user-share = callPackage ./mate-user-share { };
52
mate-utils = callPackage ./mate-utils { };
0
53
mozo = callPackage ./mozo { };
54
pluma = callPackage ./pluma { };
55
python-caja = callPackage ./python-caja { };
···
50
mate-user-guide = callPackage ./mate-user-guide { };
51
mate-user-share = callPackage ./mate-user-share { };
52
mate-utils = callPackage ./mate-utils { };
53
+
mate-wayland-session = callPackage ./mate-wayland-session { };
54
mozo = callPackage ./mozo { };
55
pluma = callPackage ./pluma { };
56
python-caja = callPackage ./python-caja { };
+58
pkgs/desktops/mate/mate-wayland-session/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenvNoCC
2
+
, lib
3
+
, fetchFromGitHub
4
+
, meson
5
+
, ninja
6
+
, glib
7
+
, mate-polkit
8
+
, mate-notification-daemon
9
+
, wayfire
10
+
, wayfirePlugins
11
+
, gitUpdater
12
+
}:
13
+
14
+
stdenvNoCC.mkDerivation rec {
15
+
pname = "mate-wayland-session";
16
+
version = "1.28.3";
17
+
18
+
src = fetchFromGitHub {
19
+
owner = "mate-desktop";
20
+
repo = "mate-wayland-session";
21
+
rev = "v${version}";
22
+
hash = "sha256-sUAq2BylsvjYn8Lt+nm4yIfVhzIEefxKZYnhJnuxjs0=";
23
+
};
24
+
25
+
nativeBuildInputs = [
26
+
meson
27
+
ninja
28
+
glib
29
+
];
30
+
31
+
postPatch = ''
32
+
substituteInPlace session/mate-wayland-components.sh \
33
+
--replace-fail "polkit-mate-authentication-agent-1" "${mate-polkit}/libexec/polkit-mate-authentication-agent-1" \
34
+
--replace-fail "mate-notification-daemon" "${mate-notification-daemon}/libexec/mate-notification-daemon" \
35
+
--replace-fail "cat /usr/bin/blueman-applet" "command -v blueman-applet" \
36
+
--replace-fail "cat /usr/bin/gnome-keyring-daemon" "command -v gnome-keyring-daemon"
37
+
38
+
# Ensure wayfire.ini is writable, as this script tries to modify it later.
39
+
substituteInPlace session/mate-wayland.sh \
40
+
--replace-fail "cp /usr/share/doc/wayfire/examples/wayfire.ini" "cp --no-preserve=mode,ownership ${wayfire.src}/wayfire.ini" \
41
+
--replace-fail "/usr/share/doc/wayfire/examples/wayfire.ini" "${wayfire.src}/wayfire.ini" \
42
+
--replace-fail "/usr/lib/x86_64-linux-gnu/wayfire/libfiredecor.so" "${wayfirePlugins.firedecor}/lib/wayfire/libfiredecor.so" \
43
+
--replace-fail "/usr/share/doc/firedecor/firedecor.config" "$out/share/doc/firedecor/firedecor.config"
44
+
'';
45
+
46
+
passthru = {
47
+
providedSessions = [ "MATE" ];
48
+
updateScript = gitUpdater { rev-prefix = "v"; };
49
+
};
50
+
51
+
meta = with lib; {
52
+
description = "Wayland session using Wayfire for the MATE desktop";
53
+
homepage = "https://mate-desktop.org";
54
+
license = licenses.gpl2Plus;
55
+
platforms = platforms.unix;
56
+
maintainers = teams.mate.members;
57
+
};
58
+
}