Files
nixpkgs/pkgs/by-name/ha/havoc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
libxkbcommon,
pkg-config,
wayland,
wayland-protocols,
wayland-scanner,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "havoc";
version = "0.7.0";
src = fetchFromGitHub {
owner = "ii8";
repo = "havoc";
rev = finalAttrs.version;
hash = "sha256-Hn0HrAgxrkfN+iXAt+C4rOd3/Z+ZKFVk3GGNgVtro7A=";
};
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; [ videl ];
inherit (wayland.meta) platforms;
broken = stdenv.hostPlatform.isDarwin; # fatal error: 'sys/epoll.h' file not found
};
})