···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, autoreconfHook
5+, pkg-config
6+, wrapGAppsHook
7+, gtk2
8+, hamlib_4 }:
9+10+stdenv.mkDerivation rec {
11+ pname = "grig";
12+ version = "0.9.0";
13+14+ src = fetchFromGitHub {
15+ owner = "fillods";
16+ repo = "grig";
17+ rev = "GRIG-${lib.replaceStrings ["."] ["_"] version}";
18+ sha256 = "sha256-OgIgHW9NMW/xSSti3naIR8AQWUtNSv5bYdOcObStBlM=";
19+ };
20+21+ nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
22+ buildInputs = [ hamlib_4 gtk2 ];
23+24+ meta = with lib; {
25+ description = "A simple Ham Radio control (CAT) program based on Hamlib";
26+ longDescription = ''
27+ Grig is a graphical user interface for the Ham Radio Control Libraries.
28+ It is intended to be simple and generic, presenting the user with the
29+ same interface regardless of which radio they use.
30+ '';
31+ homepage = "https://groundstation.sourceforge.net/grig/";
32+ license = licenses.gpl2;
33+ platforms = platforms.linux;
34+ maintainers = with maintainers; [ melling ];
35+ };
36+}