about summary refs log tree commit diff
path: root/pkgs/applications/science/astronomy/calcmysky/default.nix
blob: 528fc74394f8f391152fc2395aa4696d7ce8ce98 (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
{ lib
, stdenv
, fetchFromGitHub
, cmake
, wrapQtAppsHook
, glm
, eigen
, qtbase
}:

stdenv.mkDerivation rec {
  pname = "calcmysky";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "10110111";
    repo = "CalcMySky";
    rev = "v${version}";
    hash = "sha256-0tHxHek4wqJKLl54zF7wDYN+UPL2y35/YAb6Dtg4k48=";
  };

  nativeBuildInputs = [ cmake wrapQtAppsHook ];
  buildInputs = [ glm eigen qtbase ];

  doCheck = true;

  meta = with lib;{
    description = "Simulator of light scattering by planetary atmospheres";
    homepage = "https://github.com/10110111/CalcMySky";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ nickcao ];
  };
}