about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/astronomy/kstars/default.nix
blob: 5fcd8d95f1946d64df69de69e33576e2b7417fb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{ lib
, stdenv
, mkDerivation
, extra-cmake-modules
, fetchFromGitHub
, kconfig
, kdoctools
, kguiaddons
, ki18n
, kinit
, kiconthemes
, kio
, knewstuff
, kplotting
, kwidgetsaddons
, kxmlgui
, knotifyconfig
, qtx11extras
, qtwebsockets
, qtkeychain
, qtdatavis3d
, wrapQtAppsHook
, breeze-icons
, libsecret
, eigen
, zlib
, cfitsio
, indi-full
, xplanet
, libnova
, libraw
, gsl
, wcslib
, stellarsolver
, libxisf
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "kstars";
  version = "3.6.9";

  src = fetchFromGitHub {
    owner = "KDE";
    repo = "kstars";
    rev = "stable-${finalAttrs.version}";
    hash = "sha256-28RRW+ncMiQcBb/lybEKTeV08ZkF3IqLkeTHNW5nhls=";
  };

  nativeBuildInputs = [
    extra-cmake-modules
    kdoctools
    wrapQtAppsHook
  ];
  buildInputs = [
    kconfig
    kdoctools
    kguiaddons
    ki18n
    kinit
    kiconthemes
    kio
    knewstuff
    kplotting
    kwidgetsaddons
    kxmlgui
    knotifyconfig
    qtx11extras
    qtwebsockets
    qtkeychain
    qtdatavis3d
    breeze-icons
    libsecret
    eigen
    zlib
    cfitsio
    indi-full
    xplanet
    libnova
    libraw
    gsl
    wcslib
    stellarsolver
    libxisf
  ];

  cmakeFlags = [
    "-DINDI_PREFIX=${indi-full}"
    "-DXPLANET_PREFIX=${xplanet}"
  ];

  meta = with lib; {
    description = "Virtual planetarium astronomy software";
    mainProgram = "kstars";
    homepage = "https://kde.org/applications/education/org.kde.kstars";
    longDescription = ''
      It provides an accurate graphical simulation of the night sky, from any location on Earth, at any date and time.
      The display includes up to 100 million stars, 13.000 deep-sky objects, all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites.
      For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations.
    '';
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ timput hjones2199 ];
  };
})