depot/third_party/nixpkgs/pkgs/applications/misc/wofi/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
954 B
Nix

{ stdenv
, lib
, fetchFromSourcehut
, pkg-config
, meson
, ninja
, wayland
, gtk3
, wrapGAppsHook3
, installShellFiles
}:
stdenv.mkDerivation rec {
pname = "wofi";
version = "1.4.1";
src = fetchFromSourcehut {
repo = pname;
owner = "~scoopta";
rev = "v${version}";
sha256 = "sha256-aedoUhVfk8ljmQ23YxVmGZ00dPpRftW2dnRAgXmtV/w=";
vc = "hg";
};
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook3 installShellFiles ];
buildInputs = [ wayland gtk3 ];
patches = [
# https://todo.sr.ht/~scoopta/wofi/121
./do_not_follow_symlinks.patch
];
postInstall = ''
installManPage man/wofi*
'';
meta = with lib; {
description = "Launcher/menu program for wlroots based wayland compositors such as sway";
homepage = "https://hg.sr.ht/~scoopta/wofi";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
platforms = with platforms; linux;
mainProgram = "wofi";
};
}