2023-08-04 22:07:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2023-10-19 13:55:26 +00:00
|
|
|
, fetchpatch
|
2023-08-04 22:07:22 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayfire
|
|
|
|
, wf-config
|
|
|
|
, gtkmm3
|
|
|
|
, gtk-layer-shell
|
2023-10-19 13:55:26 +00:00
|
|
|
, libevdev
|
|
|
|
, libinput
|
2023-08-04 22:07:22 +00:00
|
|
|
, libxkbcommon
|
|
|
|
, xcbutilwm
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "wayfire-plugins-extra";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.8.0";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WayfireWM";
|
|
|
|
repo = "wayfire-plugins-extra";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
fetchSubmodules = true;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-OVyP1AgZ1d9DXFkbHnROwtSQIquEX5ccVIkcmCdDZtA=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "check-dependency-libevdev.patch";
|
|
|
|
url = "https://github.com/WayfireWM/wayfire-plugins-extra/commit/f3bbf1fcbafd28016e36be7a5043bd82574ac9e4.patch";
|
|
|
|
hash = "sha256-8X1lpf8H8NuA845cIslahKDQKW/IA/KiMExU4Snk72o=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace metadata/meson.build \
|
|
|
|
--replace "wayfire.get_variable(pkgconfig: 'metadatadir')" "join_paths(get_option('prefix'), 'share/wayfire/metadata')"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayfire
|
|
|
|
wf-config
|
2023-10-19 13:55:26 +00:00
|
|
|
libevdev
|
|
|
|
libinput
|
2023-08-04 22:07:22 +00:00
|
|
|
libxkbcommon
|
|
|
|
xcbutilwm
|
|
|
|
gtkmm3
|
|
|
|
gtk-layer-shell
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [ "--sysconfdir /etc" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/WayfireWM/wayfire-plugins-extra";
|
|
|
|
description = "Additional plugins for Wayfire";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ rewine ];
|
|
|
|
inherit (wayfire.meta) platforms;
|
|
|
|
};
|
|
|
|
})
|