2022-04-27 09:35:20 +00:00
|
|
|
{ stdenv, lib
|
|
|
|
, alsa-utils
|
|
|
|
, at-spi2-core
|
|
|
|
, cmake
|
|
|
|
, curl
|
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flac
|
|
|
|
, gtk3
|
|
|
|
, jasper
|
|
|
|
, libGLU
|
|
|
|
, libarchive
|
|
|
|
, libdatrie
|
|
|
|
, libelf
|
2022-07-14 12:49:19 +00:00
|
|
|
, libepoxy
|
2022-04-27 09:35:20 +00:00
|
|
|
, 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
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "opencpn";
|
|
|
|
version = "5.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenCPN";
|
|
|
|
repo = "OpenCPN";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "Release_${version}";
|
|
|
|
hash = "sha256-sNZYf/2gtjRrrGPuazVnKTgcuIQpKPazhexqlK21T4g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ cmake lsb-release pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
alsa-utils
|
|
|
|
at-spi2-core
|
|
|
|
curl
|
|
|
|
dbus
|
|
|
|
flac
|
|
|
|
gtk3
|
|
|
|
jasper
|
|
|
|
libGLU
|
|
|
|
libarchive
|
|
|
|
libdatrie
|
|
|
|
libelf
|
2022-07-14 12:49:19 +00:00
|
|
|
libepoxy
|
2022-04-27 09:35:20 +00:00
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DOCPN_BUNDLE_DOCS=true" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A concise ChartPlotter/Navigator";
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ kragniz lovesegfault ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://opencpn.org/";
|
|
|
|
};
|
|
|
|
}
|