nixpkgs/pkgs/applications/misc/foxtrotgps/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
2.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchbzr, autoreconfHook, texinfo, help2man, imagemagick, pkg-config
2020-12-04 21:47:22 +00:00
, curl, gnome2, gpsd, gtk2, wrapGAppsHook
2020-01-24 20:02:54 +00:00
, intltool, libexif, python3Packages, sqlite }:
2020-12-04 21:47:22 +00:00
let
srcs = {
foxtrot = fetchbzr {
url = "lp:foxtrotgps";
2021-10-04 20:48:41 +01:00
rev = "331";
sha256 = "sha256-/kJv6a3MzAzzwIl98Mqi7jrUJC1kDvouigf9kGtv868=";
2020-12-04 21:47:22 +00:00
};
screenshots = fetchbzr {
url = "lp:foxtrotgps/screenshots";
rev = "2";
sha256 = "1sgysn3dhfhrv7rj7wf8f2119vmhc1s1zzsp4r3nlrr45d20wmsv";
};
};
in stdenv.mkDerivation rec {
2020-01-24 20:02:54 +00:00
pname = "foxtrotgps";
2021-10-04 20:48:41 +01:00
version = "1.2.2+331";
2020-01-24 20:02:54 +00:00
2020-12-04 21:47:22 +00:00
# Pull directly from bzr because gpsd API version 9 is not supported on latest release
src = srcs.foxtrot;
2021-03-09 04:35:53 +00:00
nativeBuildInputs = [
pkg-config autoreconfHook texinfo help2man
imagemagick wrapGAppsHook intltool
2020-12-04 21:47:22 +00:00
];
2020-01-24 20:02:54 +00:00
buildInputs = [
curl.dev
gnome2.libglade.dev
gpsd
gtk2.dev
libexif
sqlite.dev
(python3Packages.python.withPackages (pythonPackages: with python3Packages;
[ beautifulsoup4 feedparser sqlalchemy ]))
2020-12-04 21:47:22 +00:00
];
postUnpack = ''
2021-10-04 20:48:41 +01:00
cp -R ${srcs.screenshots} $sourceRoot/doc/screenshots
chmod -R u+w $sourceRoot/doc/screenshots
'';
# Remove when foxtrotgps supports gpsd 3.23.1
# Patch for compatibility with gpsd 3.23.1. This was added for foxtrotgps
# 1.2.2+331. The command can be removed if the build of a newer version
# succeeds without it.
postPatch = ''
substituteInPlace src/gps_functions.c --replace "STATUS_NO_FIX" "STATUS_UNK"
2020-12-04 21:47:22 +00:00
'';
preConfigure = ''
2021-10-04 20:48:41 +01:00
intltoolize --automake --copy --force
2020-12-04 21:47:22 +00:00
'';
2020-01-24 20:02:54 +00:00
meta = with lib; {
2020-01-24 20:02:54 +00:00
description = "GPS/GIS application optimized for small screens";
longDescription = ''
An easy to use, free & open-source GPS/GIS application that works well on
small screens, and is especially suited to touch input. It spun off of
tangoGPS in 2010 with a focus on cooperation and fostering community
innovation.
'';
homepage = "https://www.foxtrotgps.org/";
2021-03-09 04:35:53 +00:00
license = licenses.gpl2Plus;
2020-01-24 20:02:54 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ wucke13 ];
};
}