1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/applications/misc/opencpn/default.nix

34 lines
938 B
Nix
Raw Normal View History

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}";
version = "4.8.2";
2016-03-29 07:31:56 +01:00
src = fetchFromGitHub {
owner = "OpenCPN";
repo = "OpenCPN";
rev = "v${version}";
sha256 = "0r6a279xhhf4jrmjb2xi5arxb4xd5wvqbs4hyyildlgpr1x7bd09";
2016-03-29 07:31:56 +01:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake gtk2 wxGTK30 libpulseaudio curl gettext
2016-03-29 07:31:56 +01: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 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
};
}