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.isDarwin [ Accelerate CoreGraphics CoreVideo ];
24 doCheck = !stdenv.isDarwin;
29 description = "A vector and matrix math library implemented using C++ templates";
31 longDescription = ''vmmlib is a vector and matrix math library implemented
32 using C++ templates. Its basic functionality includes a vector
33 and a matrix class, with additional functionality for the
34 often-used 3d and 4d vectors and 3x3 and 4x4 matrices.
35 More advanced functionality include solvers, frustum
36 computations and frustum culling classes, and spatial data structures'';
38 license = licenses.bsd2;
39 homepage = "https://github.com/VMML/vmmlib/";
40 maintainers = [ maintainers.adev ];
41 platforms = platforms.all;