1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/development/libraries/vmmlib/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

47 lines
1.4 KiB
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas
, 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
];
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ boost blas ]
++ stdenv.lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ];
enableParallelBuilding = true;
doCheck = !stdenv.isDarwin;
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;
homepage = https://github.com/VMML/vmmlib/;
maintainers = [ maintainers.adev ];
platforms = platforms.all;
};
}