blob: ee5db97c9865d4f44cff19b22a665326369f4268 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ 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.isDarwin; # fatal error: 'sys/epoll.h' file not found
};
})
|