1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, lapack
2 , Accelerate, CoreGraphics, CoreVideo
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
12 rev = "release-${version}";
13 sha256 = "0sn6jl1r5k6ka0vkjsdnn14hb95dqq8158dapby6jk72wqj9kdml";
17 ./disable-cpack.patch #disable the need of cpack/rpm
20 nativeBuildInputs = [ pkg-config cmake ];
21 buildInputs = [ boost lapack ]
22 ++ lib.optionals stdenv.hostPlatform.isDarwin [ Accelerate CoreGraphics CoreVideo ];
24 doCheck = !stdenv.hostPlatform.isDarwin;
29 broken = stdenv.hostPlatform.isDarwin;
30 description = "Vector and matrix math library implemented using C++ templates";
33 vmmlib is a vector and matrix math library implemented
34 using C++ templates. Its basic functionality includes a vector
35 and a matrix class, with additional functionality for the
36 often-used 3d and 4d vectors and 3x3 and 4x4 matrices.
37 More advanced functionality include solvers, frustum
38 computations and frustum culling classes, and spatial data structures
41 license = licenses.bsd2;
42 homepage = "https://github.com/VMML/vmmlib/";
43 maintainers = [ maintainers.adev ];
44 platforms = platforms.all;