nixpkgs/pkgs/applications/misc/wofi/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

45 lines
936 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 = [ ];
platforms = with platforms; linux;
mainProgram = "wofi";
};
}