git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #51163 from kalbasit/nixpkgs_add-animal

aminal: init at 0.7.4

commit5c26dc3d8460a747622bffd89139b27762154015 authorDaiderd Jordan <daiderd@gmail.com> dateWed 28 Nov 2018, 21:38 (8 years ago) parent8b472e39ba423b
2 files changed+80
pkgs/applications/misc/aminal/default.nix+75 pkgs/top-level/all-packages.nix+5
pkgs/applications/misc/aminal/default.nixnew file+75
@@ -0,0 +1,75 @@
1+{ buildGoPackage
2+, Carbon
3+, Cocoa
4+, Kernel
5+, cf-private
6+, fetchFromGitHub
7+, lib
8+, mesa_glu
9+, stdenv
10+, xorg
11+}:
12+
13+buildGoPackage rec {
14+ name = "aminal-${version}";
15+ version = "0.7.4";
16+
17+ goPackagePath = "github.com/liamg/aminal";
18+
19+ buildInputs =
20+ lib.optionals stdenv.isLinux [
21+ mesa_glu
22+ xorg.libX11
23+ xorg.libXcursor
24+ xorg.libXi
25+ xorg.libXinerama
26+ xorg.libXrandr
27+ xorg.libXxf86vm
28+ ] ++ lib.optionals stdenv.isDarwin [
29+ Carbon
30+ Cocoa
31+ Kernel
32+ cf-private /* Needed for NSDefaultRunLoopMode */
33+ ];
34+
35+ src = fetchFromGitHub {
36+ owner = "liamg";
37+ repo = "aminal";
38+ rev = "v${version}";
39+ sha256 = "0wnzxjlv98pi3gy4hp3d19pwpa4kf1h5rqy03s9bcqdbpb1v1b7v";
40+ };
41+
42+ preBuild = ''
43+ buildFlagsArray=("-ldflags=-X ${goPackagePath}/version.Version=${version}")
44+ '';
45+
46+ meta = with lib; {
47+ description = "Golang terminal emulator from scratch";
48+ longDescription = ''
49+ Aminal is a modern terminal emulator for Mac/Linux implemented in Golang
50+ and utilising OpenGL.
51+
52+ The project is experimental at the moment, so you probably won't want to
53+ rely on Aminal as your main terminal for a while.
54+
55+ Features:
56+ - Unicode support
57+ - OpenGL rendering
58+ - Customisation options
59+ - True colour support
60+ - Support for common ANSI escape sequences a la xterm
61+ - Scrollback buffer
62+ - Clipboard access
63+ - Clickable URLs
64+ - Multi platform support (Windows coming soon...)
65+ - Sixel support
66+ - Hints/overlays
67+ - Built-in patched fonts for powerline
68+ - Retina display support
69+ '';
70+ homepage = https://github.com/liamg/aminal;
71+ license = licenses.gpl3;
72+ maintainers = with maintainers; [ kalbasit ];
73+ platforms = platforms.linux ++ platforms.darwin;
74+ };
75+}
pkgs/top-level/all-packages.nix+5
@@ -19327,6 +19327,11 @@ with pkgs;
1932719327 vte = gnome3.vte;
1932819328 };
1932919329
19330+ aminal = callPackage ../applications/misc/aminal {
19331+ inherit (darwin.apple_sdk.frameworks) Carbon Cocoa Kernel;
19332+ inherit (darwin) cf-private;
19333+ };
19334+
1933019335 termite-unwrapped = callPackage ../applications/misc/termite {
1933119336 vte = gnome3.vte-ng;
1933219337 };