mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
openmvs: init at 2.1.0
This commit is contained in:
parent
b799bb34ee
commit
b3dead4ffb
34
pkgs/applications/science/misc/openmvs/default.nix
Normal file
34
pkgs/applications/science/misc/openmvs/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user