@@ -0,0 +1,76 @@
1+{ fetchFromGitHub
2+, gdk-pixbuf
3+, gobject-introspection
4+, gtk3
5+, intltool
6+, meson
7+, ninja
8+, pkgconfig
9+, pulseaudio
10+, python3
11+, stdenv
12+, xkeyboard_config
13+, xorg
14+, wrapGAppsHook
15+, glib
16+}:
17+
18+stdenv.mkDerivation rec {
19+ pname = "cinnamon-desktop";
20+ version = "4.4.0";
21+
22+ src = fetchFromGitHub {
23+ owner = "linuxmint";
24+ repo = pname;
25+ rev = version;
26+ sha256 = "17hb8gkb9pfj56ckva5g4x83yvmdv7hvpidxjsdf79dw6pabr5rg";
27+ };
28+
29+ outputs = [ "out" "dev" ];
30+
31+ propagatedBuildInputs = [
32+ glib
33+ gtk3
34+ pulseaudio
35+ ];
36+
37+ buildInputs = [
38+ gdk-pixbuf
39+ xkeyboard_config
40+ xorg.libxkbfile
41+ xorg.libXext
42+ xorg.libXrandr
43+ gobject-introspection
44+ ];
45+
46+ nativeBuildInputs = [
47+ meson
48+ ninja
49+ python3
50+ wrapGAppsHook
51+ intltool
52+ pkgconfig
53+ ];
54+
55+ postPatch = ''
56+ chmod +x install-scripts/meson_install_schemas.py # patchShebangs requires executable file
57+ patchShebangs install-scripts/meson_install_schemas.py
58+ sed "s|/usr/share|/run/current-system/sw/share|g" -i ./schemas/* # NOTE: unless this causes a circular dependency, we could link it to cinnamon-common/share/cinnamon
59+ '';
60+
61+ meta = with stdenv.lib; {
62+ homepage = "https://github.com/linuxmint/cinnamon-desktop";
63+ description = "Library and data for various Cinnamon modules";
64+
65+ longDescription = ''
66+ The libcinnamon-desktop library provides API shared by several applications
67+ on the desktop, but that cannot live in the platform for various
68+ reasons. There is no API or ABI guarantee, although we are doing our
69+ best to provide stability. Documentation for the API is available with
70+ gtk-doc.
71+ '';
72+
73+ platforms = platforms.linux;
74+ maintainers = [ maintainers.mkg20001 ];
75+ };
76+}