btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / xl / xlog / package.nix
blob7c7d5f574a3fb7e0c507104f9ce5fb5bb975b2d6
1 { lib, stdenv, fetchurl, glib, gtk2, pkg-config, hamlib }:
2 stdenv.mkDerivation rec {
3   pname = "xlog";
4   version = "2.0.25";
6   src = fetchurl {
7     url = "https://download.savannah.gnu.org/releases/xlog/${pname}-${version}.tar.gz";
8     sha256 = "sha256-NYC3LgoLXnJQURcZTc2xHOzOleotrWtOETMBgadf2qU=";
9   };
11   # glib-2.62 deprecations
12   env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ glib gtk2 hamlib ];
17   meta = with lib; {
18     description = "Amateur radio logging program";
19     longDescription = ''
20       Xlog is an amateur radio logging program.
21       It supports cabrillo, ADIF, trlog (format also used by tlf),
22       and EDI (ARRL VHF/UHF contest format) and can import twlog, editest and OH1AA logbook files.
23       Xlog is able to do DXCC lookups and will display country information, CQ and ITU zone,
24       location in latitude and longitude and distance and heading in kilometers or miles,
25       both for short and long path.
26     '';
27     homepage = "https://www.nongnu.org/xlog";
28     maintainers = [ maintainers.mafo ];
29     license = licenses.gpl3;
30     platforms = platforms.unix;
31     mainProgram = "xlog";
32   };