nixpkgs/pkgs/desktops/cinnamon/muffin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

124 lines
2 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, substituteAll
, cairo
2020-01-20 19:09:34 +01:00
, cinnamon-desktop
, dbus
, desktop-file-utils
, egl-wayland
2020-01-20 19:09:34 +01:00
, glib
, gnome
2020-01-20 19:09:34 +01:00
, gobject-introspection
, graphene
2020-01-20 19:09:34 +01:00
, gtk3
, json-glib
, libcanberra
, libdrm
, libgnomekbd
, libgudev
2020-01-20 19:09:34 +01:00
, libinput
, libstartup_notification
, libwacom
, libxcvt
, libXdamage
2020-01-20 19:09:34 +01:00
, libxkbcommon
, libXtst
, mesa
, meson
, ninja
, pipewire
2021-01-17 03:21:50 +01:00
, pkg-config
, python3
2020-01-20 19:09:34 +01:00
, udev
, wayland
, wayland-protocols
, wrapGAppsHook3
, xorgserver
, xwayland
2020-01-20 19:09:34 +01:00
}:
stdenv.mkDerivation rec {
pname = "muffin";
version = "6.0.1";
outputs = [ "out" "dev" "man" ];
2020-01-20 19:09:34 +01:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-yd23naaPIa6xrdf7ipOvVZKqkr7/CMxNqDZ3CQ2QH+Y=";
2020-01-20 19:09:34 +01:00
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
zenity = gnome.zenity;
})
];
nativeBuildInputs = [
desktop-file-utils
mesa # needed for gbm
meson
ninja
pkg-config
python3
wrapGAppsHook3
xorgserver # for cvt command
gobject-introspection
];
2020-01-20 19:09:34 +01:00
buildInputs = [
cairo
cinnamon-desktop
dbus
egl-wayland
glib
gtk3
libcanberra
libdrm
libgnomekbd
libgudev
2020-01-20 19:09:34 +01:00
libinput
libstartup_notification
libwacom
libxcvt
libXdamage
libxkbcommon
pipewire
2020-01-20 19:09:34 +01:00
udev
wayland
wayland-protocols
xwayland
2020-01-20 19:09:34 +01:00
];
propagatedBuildInputs = [
# required for pkg-config to detect muffin-clutter
json-glib
libXtst
graphene
2020-01-20 19:09:34 +01:00
];
mesonFlags = [
# Based on Mint's debian/rules.
"-Degl_device=true"
"-Dwayland_eglstream=true"
"-Dxwayland_path=${lib.getExe xwayland}"
];
postPatch = ''
patchShebangs src/backends/native/gen-default-modes.py
2020-01-20 19:09:34 +01:00
'';
meta = with lib; {
2020-01-20 19:09:34 +01:00
homepage = "https://github.com/linuxmint/muffin";
description = "The window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (muffin)";
mainProgram = "muffin";
license = licenses.gpl2Plus;
2020-01-20 19:09:34 +01:00
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
2020-01-20 19:09:34 +01:00
};
}