···11+{ lib
22+, stdenv
33+, fetchFromGitHub
44+, autoreconfHook
55+, pkg-config
66+, wrapGAppsHook
77+, gtk2
88+, hamlib_4 }:
99+1010+stdenv.mkDerivation rec {
1111+ pname = "grig";
1212+ version = "0.9.0";
1313+1414+ src = fetchFromGitHub {
1515+ owner = "fillods";
1616+ repo = "grig";
1717+ rev = "GRIG-${lib.replaceStrings ["."] ["_"] version}";
1818+ sha256 = "sha256-OgIgHW9NMW/xSSti3naIR8AQWUtNSv5bYdOcObStBlM=";
1919+ };
2020+2121+ nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
2222+ buildInputs = [ hamlib_4 gtk2 ];
2323+2424+ meta = with lib; {
2525+ description = "A simple Ham Radio control (CAT) program based on Hamlib";
2626+ longDescription = ''
2727+ Grig is a graphical user interface for the Ham Radio Control Libraries.
2828+ It is intended to be simple and generic, presenting the user with the
2929+ same interface regardless of which radio they use.
3030+ '';
3131+ homepage = "https://groundstation.sourceforge.net/grig/";
3232+ license = licenses.gpl2;
3333+ platforms = platforms.linux;
3434+ maintainers = with maintainers; [ melling ];
3535+ };
3636+}