2022-10-30 15:09:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wayland
|
|
|
|
, gtk3
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-10-30 15:09:59 +00:00
|
|
|
, installShellFiles
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wofi";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
repo = pname;
|
|
|
|
owner = "~scoopta";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-aedoUhVfk8ljmQ23YxVmGZ00dPpRftW2dnRAgXmtV/w=";
|
2022-10-30 15:09:59 +00:00
|
|
|
vc = "hg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook3 installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ wayland gtk3 ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
patches = [
|
|
|
|
# https://todo.sr.ht/~scoopta/wofi/121
|
|
|
|
./do_not_follow_symlinks.patch
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage man/wofi*
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Launcher/menu program for wlroots based wayland compositors such as sway";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://hg.sr.ht/~scoopta/wofi";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl3Only;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "wofi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|