about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorMatthew Daiter <mdaiter8121@gmail.com>2017-05-12 21:07:11 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-05-12 20:07:11 +0100
commit093130f8027f442826a4ab4d8dfff812c65529df (patch)
tree94edf96f0b65ec534a95ded533e5c66d5137719e /pkgs/applications/science
parentc9f8fb4d127aa50cbe8905a1686b1ed88754a9b7 (diff)
downloadnixlib-093130f8027f442826a4ab4d8dfff812c65529df.tar
nixlib-093130f8027f442826a4ab4d8dfff812c65529df.tar.gz
nixlib-093130f8027f442826a4ab4d8dfff812c65529df.tar.bz2
nixlib-093130f8027f442826a4ab4d8dfff812c65529df.tar.lz
nixlib-093130f8027f442826a4ab4d8dfff812c65529df.tar.xz
nixlib-093130f8027f442826a4ab4d8dfff812c65529df.tar.zst
nixlib-093130f8027f442826a4ab4d8dfff812c65529df.zip
openmvs: init at current master (#25672)
* openmvs: init at current master

* openmvs: simplify expression

* openmvs: init at unstable-2017-05-01
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/misc/openmvs/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/openmvs/default.nix b/pkgs/applications/science/misc/openmvs/default.nix
new file mode 100644
index 000000000000..177f8ca25649
--- /dev/null
+++ b/pkgs/applications/science/misc/openmvs/default.nix
@@ -0,0 +1,45 @@
+{ lib, stdenv, fetchFromGitHub, pkgconfig, cmake
+, eigen, opencv, ceres-solver, cgal, boost, vcg
+, gmp, mpfr, glog, google-gflags, libjpeg_turbo }:
+
+stdenv.mkDerivation rec {
+  name = "openmvs-unstable-2017-05-01";
+
+  src = fetchFromGitHub {
+    owner = "cdcseacave";
+    repo = "openmvs";
+
+    rev = "a3b360016660a1397f6eb6c070c2c19bbb4c7590";
+    sha256 = "170ff4ipix2kqq5rhb1yrrcvc79im9qgp5hiwsdr23xxzdl21221";
+  };
+
+  buildInputs = [ eigen opencv ceres-solver cgal boost vcg gmp mpfr glog google-gflags libjpeg_turbo ];
+
+  nativeBuildInputs = [ cmake pkgconfig ];
+
+  preConfigure = ''
+    cmakeFlagsArray=(
+      $cmakeFlagsArray
+      "-DCMAKE_CXX_FLAGS=-std=c++11"
+      "-DBUILD_SHARED_LIBS=ON"
+      "-DBUILD_STATIC_RUNTIME=ON"
+      "-DINSTALL_BIN_DIR=$out/bin"
+      "-DVCG_DIR=${vcg}"
+      "-DCERES_DIR=${ceres-solver}/lib/cmake/Ceres/"
+    )
+  '';
+
+  cmakeDir = "./";
+
+  dontUseCmakeBuildDir = true;
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "A library for computer-vision scientists and especially targeted to the Multi-View Stereo reconstruction community";
+    homepage = http://cdcseacave.github.io/openMVS/;
+    license = licenses.agpl3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ mdaiter ];
+  };
+}