nixpkgs/pkgs/by-name/mu/muffin/package.nix

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

131 lines
2.1 KiB
Nix
Raw Normal View History

{
stdenv,
lib,
fetchFromGitHub,
substituteAll,
cairo,
2020-01-20 18:09:34 +00:00
cinnamon-desktop,
dbus,
desktop-file-utils,
egl-wayland,
2020-01-20 18:09:34 +00:00
glib,
gobject-introspection,
graphene,
2020-01-20 18:09:34 +00:00
gtk3,
json-glib,
libcanberra,
libdrm,
libgnomekbd,
libgudev,
2020-01-20 18:09:34 +00:00
libinput,
libstartup_notification,
libwacom,
libxcvt,
libXdamage,
2020-01-20 18:09:34 +00:00
libxkbcommon,
libXtst,
mesa,
meson,
ninja,
pipewire,
2021-01-17 02:21:50 +00:00
pkg-config,
python3,
2020-01-20 18:09:34 +00:00
udev,
wayland,
wayland-protocols,
wayland-scanner,
wrapGAppsHook3,
xorgserver,
xwayland,
zenity,
2020-01-20 18:09:34 +00:00
}:
stdenv.mkDerivation rec {
pname = "muffin";
version = "6.4.1";
outputs = [
"out"
"dev"
"man"
];
2020-01-20 18:09:34 +00:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-cGC1yGft3uEqefm2DvZrMaROoZKYd6LNY0IJ+58f6vs=";
2020-01-20 18:09:34 +00:00
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit zenity;
})
];
nativeBuildInputs = [
desktop-file-utils
mesa # needed for gbm
meson
ninja
pkg-config
python3
wrapGAppsHook3
xorgserver # for cvt command
gobject-introspection
wayland-scanner
];
2020-01-20 18:09:34 +00:00
buildInputs = [
cairo
cinnamon-desktop
dbus
egl-wayland
glib
gtk3
libcanberra
libdrm
libgnomekbd
libgudev
2020-01-20 18:09:34 +00:00
libinput
libstartup_notification
libwacom
libxcvt
libXdamage
libxkbcommon
pipewire
2020-01-20 18:09:34 +00:00
udev
wayland
wayland-protocols
xwayland
2020-01-20 18:09:34 +00:00
];
propagatedBuildInputs = [
# required for pkg-config to detect muffin-clutter
json-glib
libXtst
graphene
2020-01-20 18:09:34 +00: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 18:09:34 +00:00
'';
meta = with lib; {
2020-01-20 18:09:34 +00:00
homepage = "https://github.com/linuxmint/muffin";
description = "Window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (muffin)";
mainProgram = "muffin";
license = licenses.gpl2Plus;
2020-01-20 18:09:34 +00:00
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
2020-01-20 18:09:34 +00:00
};
}