2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, fetchpatch
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxkbcommon
|
|
|
|
, scdoc
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wmenu";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.1.7";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~adnano";
|
|
|
|
repo = "wmenu";
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-9do7zL7yaZuqVjastySwjsByo5ja+KUP3590VjIyVnI=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Upstream patch needed to fix NULL deref
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://git.sr.ht/~adnano/wmenu/commit/2856dddcac861ddf248143e66ba164d7aa05a0bb.patch";
|
|
|
|
hash = "sha256-P7SEjMssA8unNAlrgrTHm0uW5pefjpupPb4s/u2fTAM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
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 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "wmenu";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|