mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
41 lines
1021 B
Nix
41 lines
1021 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
cmake,
|
|
gfortran,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "calceph";
|
|
version = "5.0.1";
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.obspm.fr";
|
|
owner = "imcce_calceph";
|
|
repo = "calceph";
|
|
tag = "calceph_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
|
|
hash = "sha256-UZ7u+T00b3CcmLPmOqqHMm4jJ2Ik6lM13fNIBJpdYXY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gfortran
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://www.imcce.fr/inpop/calceph/";
|
|
changelog = "https://gitlab.obspm.fr/imcce_calceph/calceph/-/blob/${finalAttrs.src.rev}/NEWS";
|
|
description = "C library for interacting with binary planetary ephemeris files, such INPOPxx, JPL DExxx and SPICE";
|
|
license = with lib.licenses; [
|
|
cecill21
|
|
cecill-b
|
|
cecill-c
|
|
];
|
|
maintainers = with lib.maintainers; [ kiranshila ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|