gtmathematics: init at 8.2

This commit is contained in:
Xiangyan Sun
2026-05-02 09:22:23 -07:00
parent f97e195236
commit 25b07fdd8f
+46
View File
@@ -0,0 +1,46 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
let
GTE_VERSION_MAJOR = "8";
GTE_VERSION_MINOR = "2";
in
stdenv.mkDerivation (finalAttrs: {
pname = "gtmathematics";
version = "${GTE_VERSION_MAJOR}.${GTE_VERSION_MINOR}";
strictDeps = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "davideberly";
repo = "GeometricTools";
tag = "GTE-version-${finalAttrs.version}";
hash = "sha256-OmWcD3T9OoLd7WDyqCyCLl5TeNnLBm9xV7DJxnb4hJc=";
};
sourceRoot = "source/GTE/Mathematics";
nativeBuildInputs = [
cmake
];
cmakeFlags = [
(lib.cmakeFeature "GTE_VERSION_MAJOR" "${GTE_VERSION_MAJOR}")
(lib.cmakeFeature "GTE_VERSION_MINOR" "${GTE_VERSION_MINOR}")
];
meta = {
description = "A collection of source code for computing in the fields of mathematics, geometry, graphics, image analysis and physics.";
homepage = "https://www.geometrictools.com";
license = lib.licenses.boost;
maintainers = with lib.maintainers; [
wishstudio
];
platforms = lib.platforms.all;
};
})