c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libxkbcommon
|
|
, pkg-config
|
|
, wayland-protocols
|
|
, wayland-scanner
|
|
, wayland
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "havoc";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ii8";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-jvGm2gFdMS61otETF7gOEpYn6IuLfqI95IpEVfIv+C4=";
|
|
};
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
wayland-protocols
|
|
wayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
libxkbcommon
|
|
wayland
|
|
];
|
|
|
|
dontConfigure = true;
|
|
|
|
installFlags = [ "PREFIX=$$out" ];
|
|
|
|
postInstall = ''
|
|
install -D -m 644 havoc.cfg -t $out/etc/${pname}/
|
|
install -D -m 644 README.md -t $out/share/doc/${pname}-${version}/
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/ii8/havoc";
|
|
description = "A minimal terminal emulator for Wayland";
|
|
license = with licenses; [ mit publicDomain ];
|
|
platforms = with platforms; unix;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
# fatal error: 'sys/epoll.h' file not found
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|