nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 nix-update-script,
6 nwjs,
7 wrapGAppsHook3,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "gridtracker";
12 version = "1.24.0922";
13
14 src = fetchFromGitLab {
15 owner = "gridtracker.org";
16 repo = "gridtracker";
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-6WgP13JVOzYnYtCDH3qCQXT70X9j4yqlUb18FFf1aSY=";
19 };
20
21 nativeBuildInputs = [ wrapGAppsHook3 ];
22
23 postPatch = ''
24 substituteInPlace Makefile \
25 --replace '$(DESTDIR)/usr' '$(DESTDIR)/'
26 substituteInPlace gridtracker.sh \
27 --replace "exec nw" "exec ${nwjs}/bin/nw" \
28 --replace "/usr/share/gridtracker" "$out/share/gridtracker"
29 substituteInPlace gridtracker.desktop \
30 --replace "/usr/share/gridtracker/gridview.png" "$out/share/gridtracker/gridview.png"
31 '';
32
33 makeFlags = [
34 "DESTDIR=$(out)"
35 "NO_DIST_INSTALL=1"
36 ];
37
38 passthru.updateScript = nix-update-script { };
39
40 meta = {
41 description = "Amateur radio companion to WSJT-X or JTDX";
42 mainProgram = "gridtracker";
43 longDescription = ''
44 GridTracker listens to traffic from WSJT-X/JTDX, displays it on a map,
45 and has a sophisticated alerting and filtering system for finding and
46 working interesting stations. It also will upload QSO records to multiple
47 logging frameworks including Logbook of the World.
48 '';
49 homepage = "https://gridtracker.org";
50 license = lib.licenses.bsd3;
51 platforms = lib.platforms.linux;
52 };
53})