lol
1{
2 stdenv,
3 lib,
4 fetchFromGitLab,
5 meson,
6 ninja,
7 pkg-config,
8 wayfire,
9 eudev,
10 libinput,
11 libxkbcommon,
12 librsvg,
13 libGL,
14 xcbutilwm,
15}:
16
17stdenv.mkDerivation (finalAttrs: {
18 pname = "windecor";
19 version = "0.8.0";
20
21 src = fetchFromGitLab {
22 owner = "wayfireplugins";
23 repo = "windecor";
24 rev = "v${finalAttrs.version}";
25 hash = "sha256-v0kGT+KrtfFJ/hp1Dr8izKVj6UHhuW6udHFjWt1y9TY=";
26 };
27
28 postPatch = ''
29 substituteInPlace meson.build \
30 --replace "wayfire.get_variable( pkgconfig: 'metadatadir' )" "join_paths(get_option('prefix'), 'share/wayfire/metadata')"
31 '';
32
33 nativeBuildInputs = [
34 meson
35 ninja
36 pkg-config
37 ];
38
39 buildInputs = [
40 wayfire
41 eudev
42 libinput
43 libxkbcommon
44 librsvg
45 libGL
46 xcbutilwm
47 ];
48
49 mesonFlags = [ "--sysconfdir=/etc" ];
50
51 meta = {
52 homepage = "https://gitlab.com/wayfireplugins/windecor";
53 description = "Window decoration plugin for wayfire";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ wineee ];
56 inherit (wayfire.meta) platforms;
57 };
58})