2022-01-25 03:21:06 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libxkbcommon
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
}:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "havoc";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.4.0";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ii8";
|
|
|
|
repo = pname;
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = version;
|
2022-01-25 03:21:06 +00:00
|
|
|
hash = "sha256-zNKDQqkDeNj5fB5EdMVfAs2H4uBgLh6Fp3uSjiJ1VhQ=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxkbcommon
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
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}/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://github.com/ii8/havoc";
|
2022-01-25 03:21:06 +00:00
|
|
|
description = "A minimal terminal emulator for Wayland";
|
2020-05-03 17:38:23 +00:00
|
|
|
license = with licenses; [ mit publicDomain ];
|
|
|
|
platforms = with platforms; unix;
|
2023-03-24 00:07:29 +00:00
|
|
|
broken = stdenv.isDarwin; # no wayland support
|
2020-05-03 17:38:23 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|