openmvg: init at v1.1

This commit is contained in:
Matthew Daiter 2017-05-03 14:55:06 +02:00 committed by mdaiter
parent 017a723939
commit c6385eb0f5
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib, stdenv, fetchgit, pkgconfig, cmake
, libjpeg ? null
, zlib ? null
, libpng ? null
, eigen ? null
, libtiff ? null
, enableExamples ? false
, enableDocs ? false }:
stdenv.mkDerivation rec {
version = "1.1";
name = "openmvg-${version}";
src = fetchgit {
url = "https://www.github.com/openmvg/openmvg.git";
# Tag v1.1
rev = "f5ecb48";
sha256 = "1di9i7yxnkdvl8lhflynmqw62gaxwv00r1sd7nzzs9qn63g0af0f";
fetchSubmodules = true;
};
buildInputs = [ libjpeg zlib libpng eigen libtiff ];
nativeBuildInputs = [ cmake pkgconfig ];
cmakeFlags = [
"-DCMAKE_CXX_FLAGS=-std=c++11"
"-DOpenMVG_BUILD_EXAMPLES=${if enableExamples then "ON" else "OFF"}"
"-DOpenMVG_BUILD_DOC=${if enableDocs then "ON" else "OFF"}"
];
cmakeDir = "./src";
dontUseCmakeBuildDir = true;
# This can be enabled, but it will exhause virtual memory on most machines.
enableParallelBuilding = false;
# Without hardeningDisable, certain flags are passed to the compile that break the build (primarily string format errors)
hardeningDisable = [ "all" ];
meta = {
description = "A library for computer-vision scientists and targeted for the Multiple View Geometry community";
homepage = http://openmvg.readthedocs.io/en/latest/;
license = stdenv.lib.licenses.mpl20;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ mdaiter ];
};
}

View File

@ -3301,6 +3301,8 @@ with pkgs;
openjade = callPackage ../tools/text/sgml/openjade { };
openmvg = callPackage ../applications/science/misc/openmvg { };
openntpd = callPackage ../tools/networking/openntpd { };
openntpd_nixos = openntpd.override {