2022-01-24 17:33:27 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libxkbcommon
|
|
|
|
, pkg-config
|
2023-09-13 03:21:55 +02:00
|
|
|
, wayland
|
2022-01-24 17:33:27 +01:00
|
|
|
, wayland-protocols
|
2023-04-22 13:11:20 +02:00
|
|
|
, wayland-scanner
|
2022-01-24 17:33:27 +01:00
|
|
|
}:
|
2020-04-30 05:09:49 +02:00
|
|
|
|
2023-09-13 03:21:55 +02:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-30 05:09:49 +02:00
|
|
|
pname = "havoc";
|
2023-04-17 09:57:15 +02:00
|
|
|
version = "0.5.0";
|
2020-04-30 05:09:49 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ii8";
|
2023-09-13 03:21:55 +02:00
|
|
|
repo = "havoc";
|
|
|
|
rev = finalAttrs.version;
|
2023-04-17 09:57:15 +02:00
|
|
|
hash = "sha256-jvGm2gFdMS61otETF7gOEpYn6IuLfqI95IpEVfIv+C4=";
|
2020-04-30 05:09:49 +02:00
|
|
|
};
|
|
|
|
|
2023-04-22 13:11:20 +02:00
|
|
|
depsBuildBuild = [
|
2022-01-24 17:33:27 +01:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2023-04-22 13:11:20 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
|
|
|
];
|
|
|
|
|
2022-01-24 17:33:27 +01:00
|
|
|
buildInputs = [
|
|
|
|
libxkbcommon
|
|
|
|
wayland
|
|
|
|
];
|
2020-04-30 05:09:49 +02:00
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$$out" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-09-13 03:21:55 +02:00
|
|
|
install -Dm 644 havoc.cfg -t $out/etc/havoc/
|
|
|
|
install -Dm 644 README.md -t $out/share/doc/havoc-${finalAttrs.version}/
|
2020-04-30 05:09:49 +02:00
|
|
|
'';
|
|
|
|
|
2023-04-22 13:11:39 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-09-13 03:21:55 +02:00
|
|
|
meta = {
|
2020-04-30 05:09:49 +02:00
|
|
|
homepage = "https://github.com/ii8/havoc";
|
2022-01-24 17:33:27 +01:00
|
|
|
description = "A minimal terminal emulator for Wayland";
|
2023-09-13 03:21:55 +02:00
|
|
|
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
|
2020-04-30 05:09:49 +02:00
|
|
|
};
|
2023-09-13 03:21:55 +02:00
|
|
|
})
|