<commit_before>{ 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<commit_msg>aminal: 0.8.6 -> 0.9.0<commit_after>{ buildGoPackage
, Carbon
, Cocoa
, Kernel
, fetchFromGitHub
, lib
, mesa_glu
, stdenv
, xorg
}:

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

  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 = "0syv9md7blnl6i19zf8s1xjx5vfz6s755fxyg2ply0qc1pwhsj8n";
  };

  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
{'fraction_non_alphanumeric': 0.09821798590965602, 'fraction_numerical': 0.022793203481143803, 'mean_word_length': 2.8015748031496064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3004835', 'n_tokens_mistral': 897, 'n_tokens_neox': 847, 'n_words': 201}