2021-01-05 17:05:55 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, boost17x, ceres-solver, eigen,
|
2020-04-24 23:36:52 +00:00
|
|
|
freeimage, glog, libGLU, glew, qtbase,
|
|
|
|
cudaSupport ? false, cudatoolkit ? null }:
|
|
|
|
|
|
|
|
assert !cudaSupport || cudatoolkit != null;
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
let boost_static = boost17x.override { enableStatic = true; };
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
mkDerivation rec {
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "colmap";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "colmap";
|
|
|
|
repo = "colmap";
|
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-uVAw6qwhpgIpHkXgxttKupU9zU+vD0Za0maw2Iv4x+I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost_static ceres-solver eigen
|
|
|
|
freeimage glog libGLU glew qtbase
|
|
|
|
] ++ lib.optional cudaSupport cudatoolkit;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "COLMAP - Structure-From-Motion and Multi-View Stereo pipeline";
|
|
|
|
longDescription = ''
|
|
|
|
COLMAP is a general-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline
|
|
|
|
with a graphical and command-line interface.
|
|
|
|
'';
|
|
|
|
homepage = "https://colmap.github.io/index.html";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ lebastr ];
|
|
|
|
};
|
|
|
|
}
|