7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libxkbcommon
|
|
, pkg-config
|
|
, wayland
|
|
, wayland-protocols
|
|
, wayland-scanner
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "havoc";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ii8";
|
|
repo = "havoc";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-YCZdAlIDptVLMUko40gfp2BCAbhGNsYyVTDB14VTNSE=";
|
|
};
|
|
|
|
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.hostPlatform.isDarwin; # fatal error: 'sys/epoll.h' file not found
|
|
};
|
|
})
|