forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, pkgconfig, intltool
|
|
, gtk3, glib, curl, goocanvas2, gpsd
|
|
, hamlib, wrapGAppsHook
|
|
}:
|
|
|
|
let
|
|
version = "2.2.1";
|
|
in stdenv.mkDerivation {
|
|
pname = "gpredict";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/csete/gpredict/releases/download/v${version}/gpredict-${version}.tar.bz2";
|
|
sha256 = "0hwf97kng1zy8rxyglw04x89p0bg07zq30hgghm20yxiw2xc8ng7";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
|
|
buildInputs = [ curl glib gtk3 goocanvas2 gpsd hamlib ];
|
|
|
|
meta = with lib; {
|
|
description = "Real time satellite tracking and orbit prediction";
|
|
longDescription = ''
|
|
Gpredict is a real time satellite tracking and orbit prediction program
|
|
written using the GTK widgets. Gpredict is targetted mainly towards ham radio
|
|
operators but others interested in satellite tracking may find it useful as
|
|
well. Gpredict uses the SGP4/SDP4 algorithms, which are compatible with the
|
|
NORAD Keplerian elements.
|
|
'';
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
homepage = "http://gpredict.oz9aec.net/";
|
|
maintainers = [ maintainers.markuskowa maintainers.cmcdragonkai ];
|
|
};
|
|
}
|