wayfirePlugins.firedecor: init at 2023-10-23
mntmn/Firedecor is the fork used for Debian packaging.
This commit is contained in:
parent
b45faa9834
commit
148aa398b7
73
pkgs/applications/window-managers/wayfire/firedecor.nix
Normal file
73
pkgs/applications/window-managers/wayfire/firedecor.nix
Normal file
@ -0,0 +1,73 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, boost
|
||||
, cairo
|
||||
, glib
|
||||
, libGL
|
||||
, libinput
|
||||
, librsvg
|
||||
, libxkbcommon
|
||||
, pango
|
||||
, udev
|
||||
, wayfire
|
||||
, wayland
|
||||
, wf-config
|
||||
, xcbutilwm
|
||||
, mate
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "firedecor";
|
||||
version = "2023-10-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mntmn";
|
||||
repo = "Firedecor";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-7or8HkmIZnLpXEZzUhJ3u8SIPfIQFgn32Ju/5OzK06Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost
|
||||
cairo
|
||||
glib
|
||||
libGL
|
||||
libinput
|
||||
librsvg
|
||||
libxkbcommon
|
||||
pango
|
||||
udev
|
||||
wayfire
|
||||
wayland
|
||||
wf-config
|
||||
xcbutilwm
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/firedecor-theme.cpp \
|
||||
--replace-fail "/usr/share" "/run/current-system/sw/share"
|
||||
'';
|
||||
|
||||
env = {
|
||||
PKG_CONFIG_WAYFIRE_PLUGINDIR = "${placeholder "out"}/lib/wayfire";
|
||||
PKG_CONFIG_WAYFIRE_METADATADIR = "${placeholder "out"}/share/wayfire/metadata";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mntmn/Firedecor";
|
||||
description = "Advanced window decoration plugin for the Wayfire window manager";
|
||||
license = licenses.mit;
|
||||
inherit (mate.mate-wayland-session.meta) maintainers;
|
||||
inherit (wayfire.meta) platforms;
|
||||
};
|
||||
})
|
@ -4,6 +4,7 @@ lib.makeScope pkgs.newScope (self:
|
||||
let
|
||||
inherit (self) callPackage;
|
||||
in {
|
||||
firedecor = callPackage ./firedecor.nix { };
|
||||
wayfire-plugins-extra = callPackage ./wayfire-plugins-extra.nix { };
|
||||
wcm = callPackage ./wcm.nix { };
|
||||
wf-shell = callPackage ./wf-shell.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user