2017-09-21 19:51:32 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas
|
|
|
|
, Accelerate, CoreGraphics, CoreVideo
|
|
|
|
}:
|
2016-02-18 22:39:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.6.2";
|
|
|
|
name = "vmmlib-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "VMML";
|
|
|
|
repo = "vmmlib";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "0sn6jl1r5k6ka0vkjsdnn14hb95dqq8158dapby6jk72wqj9kdml";
|
|
|
|
};
|
|
|
|
|
2017-09-21 19:51:32 +00:00
|
|
|
patches = [
|
|
|
|
./disable-cpack.patch #disable the need of cpack/rpm
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
buildInputs = [ boost blas ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ];
|
|
|
|
|
2016-02-18 22:39:18 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-21 19:51:32 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2016-02-18 22:39:18 +00:00
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A vector and matrix math library implemented using C++ templates";
|
|
|
|
|
|
|
|
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
|
|
|
|
often-used 3d and 4d vectors and 3x3 and 4x4 matrices.
|
|
|
|
More advanced functionality include solvers, frustum
|
|
|
|
computations and frustum culling classes, and spatial data structures'';
|
|
|
|
|
|
|
|
license = licenses.bsd2;
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://github.com/VMML/vmmlib/;
|
2016-02-18 22:39:18 +00:00
|
|
|
maintainers = [ maintainers.adev ];
|
|
|
|
platforms = platforms.all;
|
2017-09-21 19:51:32 +00:00
|
|
|
};
|
2016-02-18 22:39:18 +00:00
|
|
|
}
|
|
|
|
|