nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 pkg-config,
7 intltool,
8 autoreconfHook,
9 gtk3,
10 glib,
11 curl,
12 goocanvas_2,
13 gpsd,
14 hamlib_4,
15 wrapGAppsHook3,
16 nix-update-script,
17}:
18
19stdenv.mkDerivation (finalAttrs: {
20 pname = "gpredict";
21 version = "2.2.1";
22
23 src = fetchFromGitHub {
24 owner = "csete";
25 repo = "gpredict";
26 tag = "v${finalAttrs.version}";
27 hash = "sha256-+hgjImfT3nWMBYwde7+KC/hzd84pwQbpoJvaJSNG4E8=";
28 };
29
30 patches = [
31 # Pull upstream fix for -fno-common toolchains:
32 # https://github.com/csete/gpredict/issues/195
33 (fetchpatch {
34 name = "fno-common.patch";
35 url = "https://github.com/csete/gpredict/commit/c565bb3d48777bfe17114b5d01cd81150521f056.patch";
36 sha256 = "1jhy9hpqlachq32bkij60q3dxkgi1kkr80rm29jjxqpmambf406a";
37 })
38 # Updates URLs for TLE files
39 # https://github.com/csete/gpredict/pull/305
40 (fetchpatch {
41 name = "TLE-urls.patch";
42 url = "https://github.com/csete/gpredict/commit/8f60f856921e8ee143cd6e2d34a9183778cb0fbf.patch";
43 hash = "sha256-X/nKrqh5sjxDMLhA9LQek8AsJFqhvK/k8Ep3ug/0rMI=";
44 })
45
46 ];
47
48 nativeBuildInputs = [
49 pkg-config
50 intltool
51 wrapGAppsHook3
52 autoreconfHook
53 ];
54 buildInputs = [
55 curl
56 glib
57 gtk3
58 goocanvas_2
59 gpsd
60 hamlib_4
61 ];
62
63 passthru.updateScript = nix-update-script { };
64
65 meta = {
66 description = "Real time satellite tracking and orbit prediction";
67 mainProgram = "gpredict";
68 longDescription = ''
69 Gpredict is a real time satellite tracking and orbit prediction program
70 written using the GTK widgets. Gpredict is targetted mainly towards ham radio
71 operators but others interested in satellite tracking may find it useful as
72 well. Gpredict uses the SGP4/SDP4 algorithms, which are compatible with the
73 NORAD Keplerian elements.
74 '';
75 license = lib.licenses.gpl2Plus;
76 platforms = lib.platforms.linux;
77 homepage = "http://gpredict.oz9aec.net/";
78 maintainers = with lib.maintainers; [
79 markuskowa
80 cmcdragonkai
81 pandapip1
82 ];
83 };
84})