summary refs log tree commit diff
path: root/pkgs/development/libraries/vmmlib/default.nix
diff options
context:
space:
mode:
authorAdrien Devresse <adrien.devresse@epfl.ch>2016-02-18 23:39:18 +0100
committerdevresse <adrien.devresse@epfl.ch>2016-02-19 14:51:43 +0000
commit825ba05efbf26801138ca3558b42a040ea774f0a (patch)
treebf7b91c4ce1b8e2e15e0a721d5a31281631c4821 /pkgs/development/libraries/vmmlib/default.nix
parentcc58339345399d6831fb2e44801e5aca33e4323a (diff)
downloadnixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.tar
nixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.tar.gz
nixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.tar.bz2
nixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.tar.lz
nixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.tar.xz
nixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.tar.zst
nixpkgs-825ba05efbf26801138ca3558b42a040ea774f0a.zip
vmmlib: init at 1.6.2
vmmlib is a vector and matrix C++ library
Diffstat (limited to 'pkgs/development/libraries/vmmlib/default.nix')
-rw-r--r--pkgs/development/libraries/vmmlib/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/libraries/vmmlib/default.nix b/pkgs/development/libraries/vmmlib/default.nix
new file mode 100644
index 00000000000..3a7f8770e6c
--- /dev/null
+++ b/pkgs/development/libraries/vmmlib/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, blas }:
+
+stdenv.mkDerivation rec {
+  version = "1.6.2";
+  name = "vmmlib-${version}";
+  buildInputs = [ stdenv pkgconfig cmake boost blas ];
+
+  src = fetchFromGitHub {
+    owner = "VMML";
+    repo = "vmmlib";
+    rev = "release-${version}";
+    sha256 = "0sn6jl1r5k6ka0vkjsdnn14hb95dqq8158dapby6jk72wqj9kdml";
+  };
+
+  patches = [ 
+		./disable-cpack.patch   #disable the need of cpack/rpm
+	    ];
+  
+  enableParallelBuilding = true;
+
+  doCheck = true;
+
+  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    = http://github.com/VMML/vmmlib/;
+    maintainers = [ maintainers.adev ];
+    platforms   = platforms.all;
+  };  
+}
+