2022-01-25 03:21:06 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libxkbcommon
|
|
|
|
, pkg-config
|
2023-10-19 13:55:26 +00:00
|
|
|
, wayland
|
2022-01-25 03:21:06 +00:00
|
|
|
, wayland-protocols
|
2023-04-29 16:46:19 +00:00
|
|
|
, wayland-scanner
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-05-03 17:38:23 +00:00
|
|
|
pname = "havoc";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.0";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ii8";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "havoc";
|
|
|
|
rev = finalAttrs.version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-YCZdAlIDptVLMUko40gfp2BCAbhGNsYyVTDB14VTNSE=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
depsBuildBuild = [
|
2022-01-25 03:21:06 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
|
|
|
];
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
buildInputs = [
|
|
|
|
libxkbcommon
|
|
|
|
wayland
|
|
|
|
];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$$out" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-10-19 13:55:26 +00:00
|
|
|
install -Dm 644 havoc.cfg -t $out/etc/havoc/
|
|
|
|
install -Dm 644 README.md -t $out/share/doc/havoc-${finalAttrs.version}/
|
2020-05-03 17:38:23 +00:00
|
|
|
'';
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
meta = {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://github.com/ii8/havoc";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Minimal terminal emulator for Wayland";
|
2023-10-19 13:55:26 +00:00
|
|
|
license = with lib.licenses; [ mit publicDomain ];
|
|
|
|
mainProgram = "havoc";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
inherit (wayland.meta) platforms;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin; # fatal error: 'sys/epoll.h' file not found
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
})
|