openmvs: init at 2.1.0

This commit is contained in:
Bouke van der Bijl 2023-01-19 13:41:47 +01:00
parent b799bb34ee
commit b3dead4ffb
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, eigen, opencv, cgal, ceres-solver, boost, vcg, glfw, zstd }:
let
boostWithZstd = boost.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ zstd ];
});
in
stdenv.mkDerivation rec {
version = "2.1.0";
pname = "openmvs";
src = fetchFromGitHub {
owner = "cdcseacave";
repo = "openmvs";
rev = "v${version}";
sha256 = "sha256-eqNprBgR0hZnbLKLZLJqjemKxHhDtGblmaSxYlmegsc=";
fetchSubmodules = true;
};
# SSE is enabled by default
cmakeFlags = lib.optional (!stdenv.isx86_64) "-DOpenMVS_USE_SSE=OFF";
buildInputs = [ eigen opencv cgal ceres-solver vcg glfw boostWithZstd ];
nativeBuildInputs = [ cmake pkg-config ];
meta = {
description = "Open Multi-View Stereo reconstruction library";
homepage = "https://github.com/cdcseacave/openMVS";
license = lib.licenses.agpl3Only;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ bouk ];
};
}

View File

@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
};
patches = [
./cgal_path.patch
# Pull upstream fix for c++17 (gcc-12):
# https://github.com/CGAL/cgal/pull/6109

View File

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