nixpkgs/pkgs/applications/misc/opencpn/default.nix
2022-05-03 13:14:13 -07:00

101 lines
1.4 KiB
Nix

{ 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
}:
stdenv.mkDerivation rec {
pname = "opencpn";
version = "5.6.2";
src = fetchFromGitHub {
owner = "OpenCPN";
repo = "OpenCPN";
rev = "Release_${version}";
hash = "sha256-sNZYf/2gtjRrrGPuazVnKTgcuIQpKPazhexqlK21T4g=";
};
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
];
cmakeFlags = [ "-DOCPN_BUNDLE_DOCS=true" ];
doCheck = true;
meta = with lib; {
description = "A concise ChartPlotter/Navigator";
maintainers = with maintainers; [ kragniz lovesegfault ];
platforms = [ "x86_64-linux" ];
license = licenses.gpl2;
homepage = "https://opencpn.org/";
};
}