nixpkgs/pkgs/applications/misc/wmenu/default.nix
2024-04-06 18:21:19 -04:00

50 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromSourcehut
, fetchpatch
, pkg-config
, meson
, ninja
, cairo
, pango
, wayland
, wayland-protocols
, libxkbcommon
, scdoc
}:
stdenv.mkDerivation rec {
pname = "wmenu";
version = "0.1.7";
strictDeps = true;
src = fetchFromSourcehut {
owner = "~adnano";
repo = "wmenu";
rev = version;
hash = "sha256-9do7zL7yaZuqVjastySwjsByo5ja+KUP3590VjIyVnI=";
};
# Upstream patch needed to fix NULL deref
patches = [
(fetchpatch {
url = "https://git.sr.ht/~adnano/wmenu/commit/2856dddcac861ddf248143e66ba164d7aa05a0bb.patch";
hash = "sha256-P7SEjMssA8unNAlrgrTHm0uW5pefjpupPb4s/u2fTAM=";
})
];
nativeBuildInputs = [ pkg-config meson ninja ];
buildInputs = [ cairo pango wayland libxkbcommon wayland-protocols scdoc ];
meta = with lib; {
description = "An efficient dynamic menu for Sway and wlroots based Wayland compositors";
homepage = "https://git.sr.ht/~adnano/wmenu";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ eken ];
mainProgram = "wmenu";
};
}