01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
35 lines
712 B
Nix
35 lines
712 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, wrapQtAppsHook
|
|
, glm
|
|
, eigen
|
|
, qtbase
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "calcmysky";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "10110111";
|
|
repo = "CalcMySky";
|
|
rev = "v${version}";
|
|
hash = "sha256-7Yj6OlZ7weenekXYGhK5EWcME20oCHiLPOxz5KEuKy4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
|
buildInputs = [ glm eigen qtbase ];
|
|
|
|
cmakeFlags = [ "-DQT_VERSION=6" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|