48 lines
822 B
Nix
48 lines
822 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
wrapQtAppsHook,
|
|
glm,
|
|
eigen,
|
|
qtbase,
|
|
stellarium,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "calcmysky";
|
|
version = "0.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "10110111";
|
|
repo = "CalcMySky";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-18ZNnLK2zMT7P0MDXS6Z38LffE8EqXKBH89TPPxVWlo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
buildInputs = [
|
|
glm
|
|
eigen
|
|
qtbase
|
|
];
|
|
|
|
cmakeFlags = [ "-DQT_VERSION=6" ];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = {
|
|
inherit stellarium;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Simulator of light scattering by planetary atmospheres";
|
|
homepage = "https://github.com/10110111/CalcMySky";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|