2016-03-29 08:31:56 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake, gtk2, wxGTK30, libpulseaudio, curl,
|
|
|
|
gettext, glib, portaudio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opencpn-${version}";
|
|
|
|
version = "4.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenCPN";
|
|
|
|
repo = "OpenCPN";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1m6fp9lf9ki9444h0dq6bj0vr7d0pcxkbjv3j2v76p0ksk2l8kw3";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig cmake gtk2 wxGTK30 libpulseaudio curl gettext
|
|
|
|
glib portaudio ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2016-04-14 03:11:58 +02: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 08:31:56 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A concise ChartPlotter/Navigator";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.kragniz ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
homepage = "http://opencpn.org/";
|
|
|
|
};
|
|
|
|
}
|