1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 wrapGAppsHook3,
8 gtk2,
9 hamlib_4,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "grig";
14 version = "0.9.0";
15
16 src = fetchFromGitHub {
17 owner = "fillods";
18 repo = "grig";
19 rev = "GRIG-${lib.replaceStrings [ "." ] [ "_" ] version}";
20 sha256 = "sha256-OgIgHW9NMW/xSSti3naIR8AQWUtNSv5bYdOcObStBlM=";
21 };
22
23 patches = [
24 # https://github.com/fillods/grig/issues/22
25 ./0001-Fix-grig-for-hamlib-4.6.2.patch
26 ];
27
28 nativeBuildInputs = [
29 autoreconfHook
30 pkg-config
31 wrapGAppsHook3
32 ];
33 buildInputs = [
34 hamlib_4
35 gtk2
36 ];
37
38 meta = with lib; {
39 description = "Simple Ham Radio control (CAT) program based on Hamlib";
40 mainProgram = "grig";
41 longDescription = ''
42 Grig is a graphical user interface for the Ham Radio Control Libraries.
43 It is intended to be simple and generic, presenting the user with the
44 same interface regardless of which radio they use.
45 '';
46 homepage = "https://groundstation.sourceforge.net/grig/";
47 license = licenses.gpl2;
48 platforms = platforms.linux;
49 maintainers = with maintainers; [
50 melling
51 mafo
52 ];
53 };
54}