about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/radio/grig/default.nix
blob: b288317c03c7b4c6ff83cfe2f587b041178f77ce (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
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, wrapGAppsHook
, gtk2
, hamlib_4 }:

stdenv.mkDerivation rec {
  pname = "grig";
  version = "0.9.0";

  src = fetchFromGitHub {
    owner = "fillods";
    repo = "grig";
    rev = "GRIG-${lib.replaceStrings ["."] ["_"] version}";
    sha256 = "sha256-OgIgHW9NMW/xSSti3naIR8AQWUtNSv5bYdOcObStBlM=";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
  buildInputs = [ hamlib_4 gtk2 ];

  meta = with lib; {
    description = "A simple Ham Radio control (CAT) program based on Hamlib";
    mainProgram = "grig";
    longDescription = ''
      Grig is a graphical user interface for the Ham Radio Control Libraries.
      It is intended to be simple and generic, presenting the user with the
      same interface regardless of which radio they use.
    '';
    homepage = "https://groundstation.sourceforge.net/grig/";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ melling ];
  };
}