Merge pull request #212242 from bouk/openmvs-fix-bins

openmvs: move binaries to correct location
This commit is contained in:
Guillaume Girol 2023-02-02 19:48:57 +00:00 committed by GitHub
commit 325aba25a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 3 deletions

View File

@ -1,4 +1,24 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, eigen, opencv, cgal, ceres-solver, boost, vcg, glfw, zstd }:
{ lib
, boost
, breakpad
, ceres-solver
, cgal
, cmake
, eigen
, fetchFromGitHub
, glfw
, gmp
, libjpeg
, libpng
, libtiff
, mpfr
, opencv
, openmp
, pkg-config
, stdenv
, vcg
, zstd
}:
let
boostWithZstd = boost.overrideAttrs (old: {
@ -20,10 +40,38 @@ stdenv.mkDerivation rec {
# SSE is enabled by default
cmakeFlags = lib.optional (!stdenv.isx86_64) "-DOpenMVS_USE_SSE=OFF";
buildInputs = [ eigen opencv cgal ceres-solver vcg glfw boostWithZstd ];
buildInputs = [
boostWithZstd
breakpad
ceres-solver
cgal
eigen
glfw
gmp
libjpeg
libpng
libtiff
mpfr
opencv
openmp
vcg
];
nativeBuildInputs = [ cmake pkg-config ];
postInstall = ''
mv $out/bin/OpenMVS/* $out/bin
rmdir $out/bin/OpenMVS
rm $out/bin/Tests
'';
doCheck = true;
checkPhase = ''
runHook preCheck
ctest
runHook postCheck
'';
meta = {
description = "Open Multi-View Stereo reconstruction library";
homepage = "https://github.com/cdcseacave/openMVS";

View File

@ -10400,7 +10400,9 @@ with pkgs;
inherit (llvmPackages) openmp;
};
openmvs = callPackage ../applications/science/misc/openmvs { };
openmvs = callPackage ../applications/science/misc/openmvs {
inherit (llvmPackages) openmp;
};
openntpd = callPackage ../tools/networking/openntpd { };