2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, cairo, pango, pkg-config, wayland-protocols
|
2021-07-16 19:40:57 +00:00
|
|
|
, glib, wayland, libxkbcommon, makeWrapper, wayland-scanner
|
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "dmenu-wayland";
|
|
|
|
version = "unstable-2023-05-18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nyyManni";
|
|
|
|
repo = "dmenu-wayland";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "a380201dff5bfac2dace553d7eaedb6cea6855f9";
|
|
|
|
hash = "sha256-dqFvU2mRYEw7n8Fmbudwi5XMLQ7mQXFkug9D9j4FIrU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config makeWrapper wayland-scanner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ cairo pango wayland-protocols glib wayland libxkbcommon ];
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
patches = [
|
|
|
|
# can be removed when https://github.com/nyyManni/dmenu-wayland/pull/23 is included
|
|
|
|
(fetchpatch {
|
2023-10-09 19:29:22 +00:00
|
|
|
name = "support-cross-compilation.patch";
|
2021-07-16 19:40:57 +00:00
|
|
|
url = "https://github.com/nyyManni/dmenu-wayland/commit/3434410de5dcb007539495395f7dc5421923dd3a.patch";
|
|
|
|
sha256 = "sha256-im16kU8RWrCY0btYOYjDp8XtfGEivemIPlhwPX0C77o=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/dmenu-wl_run \
|
|
|
|
--prefix PATH : $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "An efficient dynamic menu for wayland (wlroots)";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nyyManni/dmenu-wayland";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ rewine ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "dmenu-wl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|