nixpkgs/pkgs/by-name/ha/havoc/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

57 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, libxkbcommon
, pkg-config
, wayland
, wayland-protocols
, wayland-scanner
}:
stdenv.mkDerivation (finalAttrs: {
pname = "havoc";
version = "0.5.0";
src = fetchFromGitHub {
owner = "ii8";
repo = "havoc";
rev = finalAttrs.version;
hash = "sha256-jvGm2gFdMS61otETF7gOEpYn6IuLfqI95IpEVfIv+C4=";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
wayland-protocols
wayland-scanner
];
buildInputs = [
libxkbcommon
wayland
];
dontConfigure = true;
installFlags = [ "PREFIX=$$out" ];
postInstall = ''
install -Dm 644 havoc.cfg -t $out/etc/havoc/
install -Dm 644 README.md -t $out/share/doc/havoc-${finalAttrs.version}/
'';
enableParallelBuilding = true;
meta = {
homepage = "https://github.com/ii8/havoc";
description = "Minimal terminal emulator for Wayland";
license = with lib.licenses; [ mit publicDomain ];
mainProgram = "havoc";
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (wayland.meta) platforms;
broken = stdenv.isDarwin; # fatal error: 'sys/epoll.h' file not found
};
})