2021-03-09 03:18:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-09 15:59:12 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
|
|
|
, cfitsio
|
|
|
|
, libusb1
|
|
|
|
, zlib
|
|
|
|
, boost
|
|
|
|
, libnova
|
|
|
|
, curl
|
|
|
|
, libjpeg
|
|
|
|
, gsl
|
2020-11-09 15:59:12 +00:00
|
|
|
, fftw
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "indilib";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.8.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "indilib";
|
|
|
|
repo = "indi";
|
|
|
|
rev = "v${version}";
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "sha256-W6LfrKL56K1B6srEfbNcq1MZwg7Oj8qoJkQ83ZhYhFs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
cfitsio
|
|
|
|
libusb1
|
|
|
|
zlib
|
|
|
|
boost
|
|
|
|
libnova
|
|
|
|
libjpeg
|
|
|
|
gsl
|
2020-11-09 15:59:12 +00:00
|
|
|
fftw
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
"-DUDEVRULES_INSTALL_DIR=lib/udev/rules.d"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.indilib.org/";
|
2020-11-09 15:59:12 +00:00
|
|
|
description = "Implementation of the INDI protocol for POSIX operating systems";
|
2021-03-09 03:18:52 +00:00
|
|
|
changelog = "https://github.com/indilib/indi/releases/tag/v${version}";
|
2020-11-09 15:59:12 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|