2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, libxkbcommon, wayland, wayland-protocols }:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "havoc";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.3.1";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ii8";
|
|
|
|
repo = pname;
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1g05r9j6srwz1krqvzckx80jn8fm48rkb4xp68953gy9yp2skg3k";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [ libxkbcommon wayland wayland-protocols ];
|
|
|
|
|
|
|
|
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
|
|
|
description = "A minimal terminal emulator for Wayland";
|
|
|
|
homepage = "https://github.com/ii8/havoc";
|
|
|
|
license = with licenses; [ mit publicDomain ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|