diff options
author | Alexander <lebastr@gmail.com> | 2019-08-31 15:06:46 +0300 |
---|---|---|
committer | Samuel Leathers <disasm@gmail.com> | 2019-08-31 08:06:46 -0400 |
commit | 35ac3344e747e61abcf1847add8d76a6a2812e8a (patch) | |
tree | 4dbd26235336c3e7c425a40c9bf35e25875a71b3 /pkgs/applications/science/misc | |
parent | a8aeb913b075f85c67b552620b06c3bb577fe5ea (diff) | |
download | nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.tar nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.tar.gz nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.tar.bz2 nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.tar.lz nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.tar.xz nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.tar.zst nixpkgs-35ac3344e747e61abcf1847add8d76a6a2812e8a.zip |
colmap: init at 3.5 (#67759)
* colmap: init at 3.5
Diffstat (limited to 'pkgs/applications/science/misc')
-rw-r--r-- | pkgs/applications/science/misc/colmap/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/colmap/default.nix b/pkgs/applications/science/misc/colmap/default.nix new file mode 100644 index 00000000000..672569ed100 --- /dev/null +++ b/pkgs/applications/science/misc/colmap/default.nix @@ -0,0 +1,37 @@ +{ mkDerivation, lib, fetchFromGitHub, cmake, boost, ceres-solver, eigen, + freeimage, glog, libGLU, glew, qtbase, + cudaSupport ? false, cudatoolkit ? null }: + +assert !cudaSupport || cudatoolkit != null; + +let boost_static = boost.override { enableStatic = true; }; +in +mkDerivation rec { + version = "3.5"; + pname = "colmap"; + src = fetchFromGitHub { + owner = "colmap"; + repo = "colmap"; + rev = version; + sha256 = "1vnb62p0y2bnga173wmjs0lnyqdjikv0fkcxjzxm8187khk2lly8"; + }; + + 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; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ lebastr ]; + }; +} |