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

34 lines
932 B
Nix
Raw Normal View History

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 = "5.0.0";
2016-03-29 08:31:56 +02:00
src = fetchFromGitHub {
owner = "OpenCPN";
repo = "OpenCPN";
rev = "v${version}";
sha256 = "1xv3h6svw9aay5ixpql231md3pf00qxvhg62z88daraf18hlkfja";
2016-03-29 08:31:56 +02:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake gtk2 wxGTK30 libpulseaudio curl gettext
2016-03-29 08:31:56 +02:00
glib portaudio ];
cmakeFlags = [
"-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 = [ "x86_64-linux" ];
2016-03-29 08:31:56 +02:00
license = stdenv.lib.licenses.gpl2;
2017-08-17 23:57:16 +02:00
homepage = https://opencpn.org/;
2016-03-29 08:31:56 +02:00
};
}