about summary refs log tree commit diff
path: root/pkgs/applications/misc/aminal/default.nix
blob: dff6b15494bbae4e5b86ebd5fe7b98c207edbaa7 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
{ buildGoPackage
, Carbon
, Cocoa
, Kernel
, fetchFromGitHub
, lib
, mesa_glu
, stdenv
, xorg
}:

buildGoPackage rec {
  pname = "aminal";
  version = "0.8.6";

  goPackagePath = "github.com/liamg/aminal";

  buildInputs =
    lib.optionals stdenv.isLinux [
      mesa_glu
      xorg.libX11
      xorg.libXcursor
      xorg.libXi
      xorg.libXinerama
      xorg.libXrandr
      xorg.libXxf86vm
    ] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa Kernel ];

  src = fetchFromGitHub {
    owner = "liamg";
    repo = "aminal";
    rev = "v${version}";
    sha256 = "0qhjdckj2kr0vza6qssd9z8dfrsif1qxb1mal1d4wgdsy12lrmwl";
  };

  preBuild = ''
    buildFlagsArray=("-ldflags=-X ${goPackagePath}/version.Version=${version}")
  '';

  meta = with lib; {
    description = "Golang terminal emulator from scratch";
    longDescription = ''
      Aminal is a modern terminal emulator for Mac/Linux implemented in Golang
      and utilising OpenGL.

      The project is experimental at the moment, so you probably won't want to
      rely on Aminal as your main terminal for a while.

      Features:
      - Unicode support
      - OpenGL rendering
      - Customisation options
      - True colour support
      - Support for common ANSI escape sequences a la xterm
      - Scrollback buffer
      - Clipboard access
      - Clickable URLs
      - Multi platform support (Windows coming soon...)
      - Sixel support
      - Hints/overlays
      - Built-in patched fonts for powerline
      - Retina display support
    '';
    homepage = "https://github.com/liamg/aminal";
    license = licenses.gpl3;
    maintainers = with maintainers; [ kalbasit ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}