2020-07-12 15:21:46 +01:00
|
|
|
{ stdenv, lib, fetchhg, fetchpatch, pkg-config, meson, ninja, wayland, gtk3, wrapGAppsHook, installShellFiles }:
|
2019-10-30 13:20:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wofi";
|
2020-11-13 14:06:08 +00:00
|
|
|
version = "1.2.3";
|
2019-10-30 13:20:05 +00:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "https://hg.sr.ht/~scoopta/wofi";
|
2019-12-21 06:16:36 +00:00
|
|
|
rev = "v${version}";
|
2020-11-13 14:06:08 +00:00
|
|
|
sha256 = "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i";
|
2019-10-30 13:20:05 +00:00
|
|
|
};
|
|
|
|
|
2020-07-12 15:21:46 +01:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook installShellFiles ];
|
2019-10-30 13:20:05 +00:00
|
|
|
buildInputs = [ wayland gtk3 ];
|
|
|
|
|
2020-08-22 12:41:01 +01:00
|
|
|
patches = [
|
|
|
|
# https://todo.sr.ht/~scoopta/wofi/121
|
|
|
|
./do_not_follow_symlinks.patch
|
|
|
|
];
|
|
|
|
|
2020-07-12 15:21:46 +01:00
|
|
|
postInstall = ''
|
|
|
|
installManPage man/wofi*
|
|
|
|
'';
|
|
|
|
|
2019-10-30 13:20:05 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A launcher/menu program for wlroots based wayland compositors such as sway";
|
|
|
|
homepage = "https://hg.sr.ht/~scoopta/wofi";
|
|
|
|
license = licenses.gpl3;
|
2020-03-28 23:17:32 +00:00
|
|
|
maintainers = with maintainers; [ elyhaka ];
|
2019-10-30 13:20:05 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|