2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, substituteAll
|
|
|
|
, cairo
|
2020-04-24 23:36:52 +00:00
|
|
|
, cinnamon-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
, dbus
|
|
|
|
, desktop-file-utils
|
2024-01-02 11:29:13 +00:00
|
|
|
, egl-wayland
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
2022-08-12 12:06:08 +00:00
|
|
|
, graphene
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, json-glib
|
2022-08-12 12:06:08 +00:00
|
|
|
, libcanberra
|
|
|
|
, libdrm
|
|
|
|
, libgnomekbd
|
|
|
|
, libgudev
|
2020-04-24 23:36:52 +00:00
|
|
|
, libinput
|
|
|
|
, libstartup_notification
|
2022-08-12 12:06:08 +00:00
|
|
|
, libwacom
|
2024-01-02 11:29:13 +00:00
|
|
|
, libxcvt
|
2022-08-12 12:06:08 +00:00
|
|
|
, libXdamage
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxkbcommon
|
2022-08-12 12:06:08 +00:00
|
|
|
, libXtst
|
|
|
|
, mesa
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pipewire
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2022-08-12 12:06:08 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, udev
|
2024-01-02 11:29:13 +00:00
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-08-12 12:06:08 +00:00
|
|
|
, xorgserver
|
2024-01-02 11:29:13 +00:00
|
|
|
, xwayland
|
2024-07-27 06:49:29 +00:00
|
|
|
, zenity
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "muffin";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "6.2.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-k8hUYA4/OzL2TB8s5DJpa2nFXV2U9eY09TLkqBDq9WE=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
2024-07-27 06:49:29 +00:00
|
|
|
inherit zenity;
|
2022-08-12 12:06:08 +00:00
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
mesa # needed for gbm
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-08-12 12:06:08 +00:00
|
|
|
xorgserver # for cvt command
|
2023-08-10 07:59:29 +00:00
|
|
|
gobject-introspection
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
cinnamon-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
dbus
|
2024-01-02 11:29:13 +00:00
|
|
|
egl-wayland
|
2022-08-12 12:06:08 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libcanberra
|
|
|
|
libdrm
|
|
|
|
libgnomekbd
|
|
|
|
libgudev
|
2020-04-24 23:36:52 +00:00
|
|
|
libinput
|
|
|
|
libstartup_notification
|
2022-08-12 12:06:08 +00:00
|
|
|
libwacom
|
2024-01-02 11:29:13 +00:00
|
|
|
libxcvt
|
2022-08-12 12:06:08 +00:00
|
|
|
libXdamage
|
|
|
|
libxkbcommon
|
|
|
|
pipewire
|
2020-04-24 23:36:52 +00:00
|
|
|
udev
|
2024-01-02 11:29:13 +00:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
xwayland
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required for pkg-config to detect muffin-clutter
|
|
|
|
json-glib
|
|
|
|
libXtst
|
|
|
|
graphene
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
mesonFlags = [
|
|
|
|
# Based on Mint's debian/rules.
|
|
|
|
"-Degl_device=true"
|
|
|
|
"-Dwayland_eglstream=true"
|
|
|
|
"-Dxwayland_path=${lib.getExe xwayland}"
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs src/backends/native/gen-default-modes.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/linuxmint/muffin";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (muffin)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "muffin";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|