summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators/kermit-terminal/default.nix
blob: c9672389d3cc35657cc07d54dd7fa69b65a43e5b (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
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, gtk3
, pcre
, pkg-config
, vte
}:

stdenv.mkDerivation rec {
  pname = "kermit";
  version = "3.5";

  src = fetchFromGitHub {
    name = "${pname}-${version}-src";
    owner = "orhun";
    repo = pname;
    rev = version;
    hash = "sha256-bdy2iPUV3flZrf4otuw40Xn1t/82H7ayjr7yzHLPo74=";
  };

  patches = [
    # Manpage installation. Remove it when next release arrives
    (fetchpatch {
      url = "https://patch-diff.githubusercontent.com/raw/orhun/kermit/pull/21.patch";
      hash = "sha256-mcsKQNEPgJOWFmOxKii2en2CwpUbT6tO2/YAlRSUL2A=";
    })
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    gtk3
    pcre
    vte
  ];

  meta = with lib; {
    homepage = "https://github.com/orhun/kermit";
    description = "A VTE-based, simple and froggy terminal emulator";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = with platforms; unix;
  };
}