2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, cairo, pango, pkg-config, wayland-protocols
|
2021-07-15 20:01:32 +00:00
|
|
|
, glib, wayland, libxkbcommon, makeWrapper, wayland-scanner
|
|
|
|
, fetchpatch
|
2020-03-02 12:38:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dmenu-wayland-unstable";
|
2022-11-04 13:09:52 +00:00
|
|
|
version = "2022-11-04";
|
2020-03-02 12:38:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nyyManni";
|
|
|
|
repo = "dmenu-wayland";
|
2022-11-04 13:09:52 +00:00
|
|
|
rev = "b60047236ef7a4e5dcde6c4ac0dcfaa070d90041";
|
|
|
|
sha256 = "sha256-CeJWLBPAzE3JITVuS6f4CQxLz9v09WvfG3O0wErJJS4=";
|
2020-03-02 12:38:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-07-15 20:01:32 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config makeWrapper wayland-scanner ];
|
2020-03-02 12:38:18 +00:00
|
|
|
buildInputs = [ cairo pango wayland-protocols glib wayland libxkbcommon ];
|
|
|
|
|
2021-07-15 20:01:32 +00:00
|
|
|
# Patch to support cross-compilation, see https://github.com/nyyManni/dmenu-wayland/pull/23/
|
|
|
|
patches = [
|
|
|
|
# can be removed when https://github.com/nyyManni/dmenu-wayland/pull/23 is included
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nyyManni/dmenu-wayland/commit/3434410de5dcb007539495395f7dc5421923dd3a.patch";
|
|
|
|
sha256 = "sha256-im16kU8RWrCY0btYOYjDp8XtfGEivemIPlhwPX0C77o=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-03-02 12:38:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/dmenu-wl_run \
|
|
|
|
--prefix PATH : $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-02 12:38:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
description = "dmenu for wayland-compositors";
|
|
|
|
homepage = "https://github.com/nyyManni/dmenu-wayland";
|
2022-06-19 10:07:43 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-03-02 12:38:18 +00:00
|
|
|
};
|
|
|
|
}
|