supernovas: init at 1.5.0 (#437400)

This commit is contained in:
Aleksana
2025-12-01 03:06:00 +00:00
committed by GitHub
+39
View File
@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
calceph,
withCalceph ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "supernovas";
version = "1.5.0";
src = fetchFromGitHub {
owner = "smithsonian";
repo = "supernovas";
tag = "v${finalAttrs.version}";
hash = "sha256-hv+OdLTzGp8y1yovZF+sSXiUi7bJx+a1V2ldsAHG9ME=";
};
nativeBuildInputs = [
cmake
];
buildInputs = lib.optionals withCalceph [ calceph ];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "ENABLE_CALCEPH" withCalceph)
(lib.cmakeBool "BUILD_EXAMPLES" false)
];
meta = {
description = "High-performance astrometry library for C/C++";
homepage = "https://smithsonian.github.io/SuperNOVAS/";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ kiranshila ];
platforms = lib.platforms.all;
};
})