2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, lapack
|
2020-04-24 23:36:52 +00:00
|
|
|
, Accelerate, CoreGraphics, CoreVideo
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.6.2";
|
|
|
|
pname = "vmmlib";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VMML";
|
|
|
|
repo = "vmmlib";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "0sn6jl1r5k6ka0vkjsdnn14hb95dqq8158dapby6jk72wqj9kdml";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./disable-cpack.patch #disable the need of cpack/rpm
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ boost lapack ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ Accelerate CoreGraphics CoreVideo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Vector and matrix math library implemented using C++ templates";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
longDescription = ''vmmlib is a vector and matrix math library implemented
|
|
|
|
using C++ templates. Its basic functionality includes a vector
|
|
|
|
and a matrix class, with additional functionality for the
|
2020-04-24 23:36:52 +00:00
|
|
|
often-used 3d and 4d vectors and 3x3 and 4x4 matrices.
|
2020-09-25 04:45:31 +00:00
|
|
|
More advanced functionality include solvers, frustum
|
2020-04-24 23:36:52 +00:00
|
|
|
computations and frustum culling classes, and spatial data structures'';
|
|
|
|
|
|
|
|
license = licenses.bsd2;
|
|
|
|
homepage = "https://github.com/VMML/vmmlib/";
|
|
|
|
maintainers = [ maintainers.adev ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|