supernovas: init at 1.5.0 (#437400)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user