2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, glm
|
|
|
|
, eigen
|
|
|
|
, qtbase
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "calcmysky";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "0.3.0";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "10110111";
|
|
|
|
repo = "CalcMySky";
|
2023-03-30 22:05:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-QVKyPyod0pxoFge/GAcle9AWXPCLR/seBVWRfs9I9tE=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
|
|
|
buildInputs = [ glm eigen qtbase ];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
cmakeFlags = [ "-DQT_VERSION=6" ];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|