forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / vmmlib / default.nix
blob71b540b01ca7fd9302f6de25665866b0acb79dd2
1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, lapack
2 , Accelerate, CoreGraphics, CoreVideo
3 }:
5 stdenv.mkDerivation rec {
6   version = "1.6.2";
7   pname = "vmmlib";
9   src = fetchFromGitHub {
10     owner = "VMML";
11     repo = "vmmlib";
12     rev = "release-${version}";
13     sha256 = "0sn6jl1r5k6ka0vkjsdnn14hb95dqq8158dapby6jk72wqj9kdml";
14   };
16   patches = [
17     ./disable-cpack.patch   #disable the need of cpack/rpm
18   ];
20   nativeBuildInputs = [ pkg-config cmake ];
21   buildInputs = [ boost lapack ]
22     ++ lib.optionals stdenv.hostPlatform.isDarwin [ Accelerate CoreGraphics CoreVideo ];
24   doCheck = !stdenv.hostPlatform.isDarwin;
26   checkTarget = "test";
28   meta = with lib; {
29     broken = stdenv.hostPlatform.isDarwin;
30     description = "Vector and matrix math library implemented using C++ templates";
32     longDescription = ''
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
39     '';
41     license     = licenses.bsd2;
42     homepage    = "https://github.com/VMML/vmmlib/";
43     maintainers = [ maintainers.adev ];
44     platforms   = platforms.all;
45   };