2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake,
|
2020-11-25 02:39:35 +00:00
|
|
|
qtbase, cfitsio, gsl, wcslib, withTester ? false }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "stellarsolver";
|
|
|
|
version = "1.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rlancaste";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "12j20j9qbkkx55ix4nm1iw7wd36hamkpidbwhcnmj4yk5fqlyq4y";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtbase cfitsio gsl wcslib ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_TESTER=${if withTester then "on" else "off"}"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-11-25 02:39:35 +00:00
|
|
|
homepage = "https://github.com/rlancaste/stellarsolver";
|
|
|
|
description = "Astrometric plate solving library";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ hjones2199 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|