Skip to content

Commit

Permalink
Merge pull request #276334 from wineee/windecor
Browse files Browse the repository at this point in the history
wayfirePlugins.windecor: init at 0.8.0
  • Loading branch information
wegank authored Jan 11, 2024
2 parents 37ec7c6 + 53d4287 commit 5017e84
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/applications/window-managers/wayfire/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ lib.makeScope pkgs.newScope (self:
wayfire-plugins-extra = callPackage ./wayfire-plugins-extra.nix { };
wcm = callPackage ./wcm.nix { };
wf-shell = callPackage ./wf-shell.nix { };
windecor = callPackage ./windecor.nix { };
}
)
63 changes: 63 additions & 0 deletions pkgs/applications/window-managers/wayfire/windecor.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{ stdenv
, lib
, fetchFromGitLab
, meson
, ninja
, pkg-config
, wayfire
, wf-config
, wayland
, pango
, eudev
, libinput
, libxkbcommon
, librsvg
, libGL
, xcbutilwm
}:

stdenv.mkDerivation (finalAttrs: {
pname = "windecor";
version = "0.8.0";

src = fetchFromGitLab {
owner = "wayfireplugins";
repo = "windecor";
rev = "v${finalAttrs.version}";
hash = "sha256-v0kGT+KrtfFJ/hp1Dr8izKVj6UHhuW6udHFjWt1y9TY=";
};

postPatch = ''
substituteInPlace 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
wayland
pango
eudev
libinput
libxkbcommon
librsvg
libGL
xcbutilwm
];

mesonFlags = [ "--sysconfdir=/etc" ];

meta = {
homepage = "https://gitlab.com/wayfireplugins/windecor";
description = "A window decoration plugin for wayfire";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ rewine ];
inherit (wayfire.meta) platforms;
};
})

0 comments on commit 5017e84

Please sign in to comment.