nixpkgs/pkgs/development/libraries/vmmlib/default.nix
piegames 68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +02:00

47 lines
1.4 KiB
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, lapack
, 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 = [ pkg-config cmake ];
buildInputs = [ boost lapack ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ Accelerate CoreGraphics CoreVideo ];
doCheck = !stdenv.hostPlatform.isDarwin;
checkTarget = "test";
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "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;
};
}