2016-03-29 07:31:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake, gtk2, wxGTK30, libpulseaudio, curl,
|
|
|
|
gettext, glib, portaudio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opencpn-${version}";
|
2018-04-30 20:40:30 +01:00
|
|
|
version = "4.8.4";
|
2016-03-29 07:31:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenCPN";
|
|
|
|
repo = "OpenCPN";
|
|
|
|
rev = "v${version}";
|
2018-04-30 20:40:30 +01:00
|
|
|
sha256 = "0v4klprzddmpq7w8h2pm69sgbshirdmjrlzhz62b606gbr58fazf";
|
2016-03-29 07:31:56 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cmake gtk2 wxGTK30 libpulseaudio curl gettext
|
2016-03-29 07:31:56 +01:00
|
|
|
glib portaudio ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2016-04-14 02:11:58 +01:00
|
|
|
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
|
|
|
|
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
2016-03-29 07:31:56 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A concise ChartPlotter/Navigator";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.kragniz ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-08-17 22:57:16 +01:00
|
|
|
homepage = https://opencpn.org/;
|
2016-03-29 07:31:56 +01:00
|
|
|
};
|
|
|
|
}
|