2016-03-29 06:31:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake, gtk2, wxGTK30, libpulseaudio, curl,
|
|
|
|
gettext, glib, portaudio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opencpn-${version}";
|
2018-11-09 13:19:44 +00:00
|
|
|
version = "4.8.8";
|
2016-03-29 06:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenCPN";
|
|
|
|
repo = "OpenCPN";
|
|
|
|
rev = "v${version}";
|
2018-11-09 13:19:44 +00:00
|
|
|
sha256 = "1z9xfc5fgbdslzak3iqg9nx6wggxwv8qwfxfhvfblkyg6kjw30dg";
|
2016-03-29 06:31:56 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cmake gtk2 wxGTK30 libpulseaudio curl gettext
|
2016-03-29 06:31:56 +00:00
|
|
|
glib portaudio ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2016-04-14 01:11:58 +00: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 06:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A concise ChartPlotter/Navigator";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.kragniz ];
|
2018-11-10 13:25:41 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2016-03-29 06:31:56 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-08-17 21:57:16 +00:00
|
|
|
homepage = https://opencpn.org/;
|
2016-03-29 06:31:56 +00:00
|
|
|
};
|
|
|
|
}
|