openmvs: init at current master (#25672)
* openmvs: init at current master * openmvs: simplify expression * openmvs: init at unstable-2017-05-01
This commit is contained in:
parent
c9f8fb4d12
commit
093130f802
45
pkgs/applications/science/misc/openmvs/default.nix
Normal file
45
pkgs/applications/science/misc/openmvs/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -1,12 +1,14 @@
|
||||
{ stdenv, fetchsvn, eigen }:
|
||||
{ stdenv, fetchFromGitHub, eigen }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vcg-2016-02-14";
|
||||
name = "vcg-${version}";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "svn://svn.code.sf.net/p/vcg/code/trunk/vcglib";
|
||||
rev = 5688;
|
||||
sha256 = "0hkvz2d8prrjdcc7h0xhfd9hq86lmqg17ml045x4bkiciimx0w5s";
|
||||
src = fetchFromGitHub {
|
||||
owner = "cnr-isti-vclab";
|
||||
repo = "vcglib";
|
||||
rev = "v${version}";
|
||||
sha256 = "0jh8jc8rn7rci8qr3q03q574fk2hsc3rllysck41j8xkr3rmxz2f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ eigen ];
|
||||
|
@ -3331,6 +3331,8 @@ with pkgs;
|
||||
|
||||
openmvg = callPackage ../applications/science/misc/openmvg { };
|
||||
|
||||
openmvs = callPackage ../applications/science/misc/openmvs { };
|
||||
|
||||
openntpd = callPackage ../tools/networking/openntpd { };
|
||||
|
||||
openntpd_nixos = openntpd.override {
|
||||
|
Loading…
Reference in New Issue
Block a user