wayfirePlugins.wayfire-plugins-extra: 0.8.0 -> 0.8.1

This commit is contained in:
rewine 2024-03-18 14:13:07 +08:00
parent e15c4cb465
commit 54b435377c

View File

@ -1,45 +1,31 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, meson , meson
, ninja , ninja
, pkg-config , pkg-config
, wayfire , wayfire
, wf-config , wf-config
, gtkmm3
, gtk-layer-shell
, libevdev , libevdev
, libinput , libinput
, libxkbcommon , libxkbcommon
, nlohmann_json
, xcbutilwm , xcbutilwm
, gtkmm3
, gtk-layer-shell
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "wayfire-plugins-extra"; pname = "wayfire-plugins-extra";
version = "0.8.0"; version = "0.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "WayfireWM"; owner = "WayfireWM";
repo = "wayfire-plugins-extra"; repo = "wayfire-plugins-extra";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
fetchSubmodules = true; hash = "sha256-MF4tDzIZnnTXH2ZUxltIw1RP3pfRQFGrc/n9H47yW0g";
hash = "sha256-OVyP1AgZ1d9DXFkbHnROwtSQIquEX5ccVIkcmCdDZtA=";
}; };
patches = [
(fetchpatch {
name = "check-dependency-libevdev.patch";
url = "https://github.com/WayfireWM/wayfire-plugins-extra/commit/f3bbf1fcbafd28016e36be7a5043bd82574ac9e4.patch";
hash = "sha256-8X1lpf8H8NuA845cIslahKDQKW/IA/KiMExU4Snk72o=";
})
];
postPatch = ''
substituteInPlace metadata/meson.build \
--replace "wayfire.get_variable(pkgconfig: 'metadatadir')" "join_paths(get_option('prefix'), 'share/wayfire/metadata')"
'';
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -52,12 +38,22 @@ stdenv.mkDerivation (finalAttrs: {
libevdev libevdev
libinput libinput
libxkbcommon libxkbcommon
nlohmann_json
xcbutilwm xcbutilwm
gtkmm3 gtkmm3
gtk-layer-shell gtk-layer-shell
]; ];
mesonFlags = [ "--sysconfdir /etc" ]; mesonFlags = [
# plugins in submodule, packaged individually
(lib.mesonBool "enable_windecor" false)
(lib.mesonBool "enable_wayfire_shadows" false)
(lib.mesonBool "enable_focus_request" false)
];
env = {
PKG_CONFIG_WAYFIRE_METADATADIR = "${placeholder "out"}/share/wayfire/metadata";
};
meta = { meta = {
homepage = "https://github.com/WayfireWM/wayfire-plugins-extra"; homepage = "https://github.com/WayfireWM/wayfire-plugins-extra";