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