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
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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
|
|
|
|
, 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
|
|
|
|
, wrapGAppsHook
|
2022-08-12 12:06:08 +00:00
|
|
|
, xorgserver
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "muffin";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "5.4.7";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
zenity = gnome.zenity;
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-Zx6au1FXLgK8PRmkh8jaGJ3Zh0YYFj2zmbxhgXAFgDg=";
|
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
|
|
|
|
wrapGAppsHook
|
|
|
|
xorgserver # for cvt command
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
cinnamon-desktop
|
2022-08-12 12:06:08 +00:00
|
|
|
dbus
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
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
|
|
|
|
libXdamage
|
|
|
|
libxkbcommon
|
|
|
|
pipewire
|
2020-04-24 23:36:52 +00:00
|
|
|
udev
|
|
|
|
];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
description = "The window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (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
|
|
|
};
|
|
|
|
}
|