Merge pull request #205172 from mattmelling/gridtracker

Closes https://github.com/NixOS/nixpkgs/issues/201213
This commit is contained in:
Sandro 2023-01-12 22:59:25 +01:00 committed by GitHub
commit da93de31ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitLab
, nwjs
}:
stdenv.mkDerivation rec {
pname = "gridtracker";
version = "1.22.1226";
src = fetchFromGitLab {
owner = "gridtracker.org";
repo = "gridtracker";
rev = "v${version}";
sha256 = "sha256-/Noc2aqHBjphX6RDqxQBI/OOKZgEnOndn0daBt1edXM=";
};
postPatch = ''
substituteInPlace Makefile \
--replace '$(DESTDIR)/usr' '$(DESTDIR)/'
substituteInPlace gridtracker.sh \
--replace "exec nw" "exec ${nwjs}/bin/nw" \
--replace "/usr/share/gridtracker" "$out/share/gridtracker"
substituteInPlace gridtracker.desktop \
--replace "/usr/share/gridtracker/gridview.png" "$out/share/gridtracker/gridview.png"
'';
makeFlags = [ "DESTDIR=$(out)" "NO_DIST_INSTALL=1" ];
meta = with lib; {
description = "An amateur radio companion to WSJT-X or JTDX";
longDescription = ''
GridTracker listens to traffic from WSJT-X/JTDX, displays it on a map,
and has a sophisticated alerting and filtering system for finding and
working interesting stations. It also will upload QSO records to multiple
logging frameworks including Logbook of the World.
'';
homepage = "https://gridtracker.org";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ melling ];
};
}

View File

@ -7732,6 +7732,8 @@ with pkgs;
libdevil = libdevil-nox;
};
gridtracker = callPackage ../applications/radio/gridtracker { };
grin = callPackage ../tools/text/grin { };
gyb = callPackage ../tools/backup/gyb { };