nixpkgs/pkgs/applications/science/astronomy/calcmysky/default.nix
2022-11-05 21:39:10 +08:00

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 ];
};
}