2022-05-03 21:14:11 +01:00
|
|
|
{ stdenv, lib
|
|
|
|
, alsa-utils
|
|
|
|
, at-spi2-core
|
|
|
|
, cmake
|
|
|
|
, curl
|
|
|
|
, dbus
|
|
|
|
, epoxy
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flac
|
|
|
|
, gtk3
|
|
|
|
, jasper
|
|
|
|
, libGLU
|
|
|
|
, libarchive
|
|
|
|
, libdatrie
|
|
|
|
, libelf
|
|
|
|
, libexif
|
|
|
|
, libogg
|
|
|
|
, libopus
|
|
|
|
, libselinux
|
|
|
|
, libsepol
|
|
|
|
, libsndfile
|
|
|
|
, libthai
|
|
|
|
, libunarr
|
|
|
|
, libusb
|
|
|
|
, libvorbis
|
|
|
|
, libxkbcommon
|
|
|
|
, lsb-release
|
|
|
|
, lz4
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, portaudio
|
|
|
|
, sqlite
|
|
|
|
, tinyxml
|
|
|
|
, udev
|
|
|
|
, util-linux
|
|
|
|
, wxGTK31-gtk3
|
|
|
|
, xorg
|
|
|
|
}:
|
2016-03-29 07:31:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-05-03 21:14:11 +01:00
|
|
|
pname = "opencpn";
|
|
|
|
version = "5.6.2";
|
2016-03-29 07:31:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenCPN";
|
|
|
|
repo = "OpenCPN";
|
2022-05-03 21:14:11 +01:00
|
|
|
rev = "Release_${version}";
|
|
|
|
hash = "sha256-sNZYf/2gtjRrrGPuazVnKTgcuIQpKPazhexqlK21T4g=";
|
2016-03-29 07:31:56 +01:00
|
|
|
};
|
|
|
|
|
2022-05-03 21:14:11 +01:00
|
|
|
nativeBuildInputs = [ cmake lsb-release pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
alsa-utils
|
|
|
|
at-spi2-core
|
|
|
|
curl
|
|
|
|
dbus
|
|
|
|
epoxy
|
|
|
|
flac
|
|
|
|
gtk3
|
|
|
|
jasper
|
|
|
|
libGLU
|
|
|
|
libarchive
|
|
|
|
libdatrie
|
|
|
|
libelf
|
|
|
|
libexif
|
|
|
|
libogg
|
|
|
|
libopus
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libsndfile
|
|
|
|
libthai
|
|
|
|
libunarr
|
|
|
|
libusb
|
|
|
|
libvorbis
|
|
|
|
libxkbcommon
|
|
|
|
lz4
|
|
|
|
pcre
|
|
|
|
portaudio
|
|
|
|
sqlite
|
|
|
|
tinyxml
|
|
|
|
udev
|
|
|
|
util-linux
|
|
|
|
wxGTK31-gtk3
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.libXtst
|
2016-03-29 07:31:56 +01:00
|
|
|
];
|
|
|
|
|
2022-05-03 21:14:11 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DOCPN_BUNDLE_DOCS=true" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2016-03-29 07:31:56 +01:00
|
|
|
description = "A concise ChartPlotter/Navigator";
|
2022-05-03 21:14:11 +01:00
|
|
|
maintainers = with maintainers; [ kragniz lovesegfault ];
|
2018-11-10 13:25:41 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2022-05-03 21:14:11 +01:00
|
|
|
license = licenses.gpl2;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://opencpn.org/";
|
2016-03-29 07:31:56 +01:00
|
|
|
};
|
|
|
|
}
|