diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-11 07:51:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 07:51:34 +0100 |
commit | 5017e843e0ccc7df707c9aad8563a7f75d83ce8b (patch) | |
tree | c2ad7bbb4b300121eb8f815716a221c856aefa02 /pkgs/applications/window-managers | |
parent | 37ec7c6720ea35b74df4d171c9aadc242d472c80 (diff) | |
parent | 53d4287952613abc029cdebe28b4210cf56a7409 (diff) | |
download | nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.tar nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.tar.gz nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.tar.bz2 nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.tar.lz nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.tar.xz nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.tar.zst nixlib-5017e843e0ccc7df707c9aad8563a7f75d83ce8b.zip |
Merge pull request #276334 from wineee/windecor
wayfirePlugins.windecor: init at 0.8.0
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r-- | pkgs/applications/window-managers/wayfire/plugins.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/window-managers/wayfire/windecor.nix | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/wayfire/plugins.nix b/pkgs/applications/window-managers/wayfire/plugins.nix index 111a8c87dd78..86f522cdd68d 100644 --- a/pkgs/applications/window-managers/wayfire/plugins.nix +++ b/pkgs/applications/window-managers/wayfire/plugins.nix @@ -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 { }; } ) diff --git a/pkgs/applications/window-managers/wayfire/windecor.nix b/pkgs/applications/window-managers/wayfire/windecor.nix new file mode 100644 index 000000000000..d3643aa18095 --- /dev/null +++ b/pkgs/applications/window-managers/wayfire/windecor.nix @@ -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; + }; +}) |