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

50 lines
1.7 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, makeWrapper, pkgconfig, intltool, gettext, gtk2, expat, curl
, gpsd, bc, file, gnome-doc-utils, libexif, libxml2, libxslt, scrollkeeper
, docbook_xml_dtd_412, gexiv2, sqlite, gpsbabel, expect, hicolor-icon-theme }:
2015-09-06 22:43:27 +03:00
stdenv.mkDerivation rec {
2012-07-01 19:32:03 +04:00
name = "viking-${version}";
2016-01-03 17:39:52 +03:00
version = "1.6.2";
src = fetchurl {
2015-09-06 22:43:27 +03:00
url = "mirror://sourceforge/viking/viking/viking-${version}.tar.bz2";
2016-01-03 17:39:52 +03:00
sha256 = "09kq0sxs2czps0d6xzgkkp41746v44ip63m72qvfs7rsrnqj7qnz";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ makeWrapper intltool gettext gtk2 expat curl gpsd bc file gnome-doc-utils
libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412 gexiv2 sqlite hicolor-icon-theme
2015-09-06 22:43:27 +03:00
];
2015-09-06 22:43:27 +03:00
configureFlags = [ "--disable-scrollkeeper --disable-mapnik" ];
2012-07-01 19:32:03 +04:00
2015-09-06 22:43:27 +03:00
preBuild = ''
sed -i help/Makefile \
-e 's|--noout|--noout --nonet --path "${scrollkeeper}/share/xml/scrollkeeper/dtds"|g'
sed -i help/Makefile -e 's|--postvalid||g'
'';
doCheck = true;
2015-09-06 22:43:27 +03:00
postInstall = ''
wrapProgram $out/bin/viking \
2016-01-03 17:39:52 +03:00
--prefix PATH : "${gpsbabel}/bin" \
--prefix PATH : "${expect}/bin"
2015-09-06 22:43:27 +03:00
'';
2015-09-06 22:43:27 +03:00
meta = with stdenv.lib; {
description = "GPS data editor and analyzer";
longDescription = ''
Viking is a free/open source program to manage GPS data. You
can import and plot tracks and waypoints, show Openstreetmaps
and/or Terraserver maps under it, download geocaches for an area
on the map, make new tracks and waypoints, see real-time GPS
position, etc.
'';
2017-11-11 19:36:33 +03:00
homepage = https://sourceforge.net/projects/viking/;
2015-09-06 22:43:27 +03:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ pSub ];
platforms = with platforms; linux;
};
}