supernovas: init at 1.5.0

Update pkgs/by-name/su/supernovas/package.nix

Co-authored-by: Angel J <78835633+Iamanaws@users.noreply.github.com>
This commit is contained in:
Kiran Shila
2025-11-19 16:34:51 -08:00
co-authored by Angel J
parent 81fcca105c
commit b4aac7e404
+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;
};
})