about summary refs log tree commit diff
path: root/pkgs/tools/misc/moserial/default.nix
blob: 8ac7091e003c2f575e1431c6e29c27a0e35dc391 (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
{ lib
, stdenv
, fetchFromGitLab
, autoreconfHook
, intltool
, itstool
, pkg-config
, vala
, glib
, graphviz
, yelp-tools
, gtk3
, lrzsz
}:

stdenv.mkDerivation rec {
  pname = "moserial";
  version = "3.0.21";

  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    owner = "GNOME";
    repo = pname;
    rev = "moserial_${lib.replaceStrings [ "." ] [ "_" ] version}";
    sha256 = "sha256-wfdI51ECqVNcUrIVjYBijf/yqpiwSQeMiKaVJSSma3k=";
  };

  nativeBuildInputs = [
    autoreconfHook
    intltool
    itstool
    pkg-config
    vala
  ];

  buildInputs = [
    glib
    graphviz
    yelp-tools
    gtk3
  ];

  preFixup = ''
    gappsWrapperArgs+=(
      --prefix PATH : ${lib.makeBinPath [ lrzsz ]}
    )
  '';

  meta = with lib; {
    description = "Clean, friendly gtk-based serial terminal for the gnome desktop";
    homepage = "https://wiki.gnome.org/moserial";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ linsui ];
    platforms = platforms.linux;
    mainProgram = "moserial";
  };
}