1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 qt6,
7 cfitsio,
8 gsl,
9 wcslib,
10 withTester ? false,
11}:
12stdenv.mkDerivation (finalAttrs: {
13 pname = "stellarsolver";
14 version = "2.7";
15
16 src = fetchFromGitHub {
17 owner = "rlancaste";
18 repo = "stellarsolver";
19 rev = finalAttrs.version;
20 sha256 = "sha256-tASjV5MZ1ClumZqu/R61b6XE9CGTuVFfpxyC89fwN9o=";
21 };
22
23 nativeBuildInputs = [ cmake ];
24
25 dontWrapQtApps = true;
26
27 buildInputs = [
28 qt6.qtbase
29 cfitsio
30 gsl
31 wcslib
32 ];
33
34 cmakeFlags = [
35 (lib.strings.cmakeBool "BUILD_TESTER" withTester)
36 (lib.strings.cmakeBool "USE_QT5" false)
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/rlancaste/stellarsolver";
41 description = "Astrometric plate solving library";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [
44 hjones2199
45 returntoreality
46 ];
47 platforms = platforms.unix;
48 };
49})