2022-01-24 16:33:27 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libxkbcommon
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
}:
|
2020-04-30 04:09:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "havoc";
|
2022-01-24 16:33:27 +00:00
|
|
|
version = "0.4.0";
|
2020-04-30 04:09:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ii8";
|
|
|
|
repo = pname;
|
2020-08-27 23:52:53 +01:00
|
|
|
rev = version;
|
2022-01-24 16:33:27 +00:00
|
|
|
hash = "sha256-zNKDQqkDeNj5fB5EdMVfAs2H4uBgLh6Fp3uSjiJ1VhQ=";
|
2020-04-30 04:09:49 +01:00
|
|
|
};
|
|
|
|
|
2022-01-24 16:33:27 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxkbcommon
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
2020-04-30 04:09:49 +01: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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-30 04:09:49 +01:00
|
|
|
homepage = "https://github.com/ii8/havoc";
|
2022-01-24 16:33:27 +00:00
|
|
|
description = "A minimal terminal emulator for Wayland";
|
2020-04-30 04:09:49 +01:00
|
|
|
license = with licenses; [ mit publicDomain ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|