mirtk: use fetchFromGitHub instead of fetchgit

This commit is contained in:
schneefux 2018-10-08 14:33:55 +02:00
parent 314593950e
commit d81a96e601

View file

@ -1,14 +1,15 @@
{ stdenv, lib, gtest, fetchgit, cmake, boost, eigen, python, vtk, zlib }:
{ stdenv, lib, gtest, fetchFromGitHub, cmake, boost, eigen, python, vtk, zlib }:
stdenv.mkDerivation rec {
version = "2.0.0";
name = "mirtk-${version}";
# uses submodules so can't use fetchFromGitHub
src = fetchgit {
url = "https://github.com/BioMedIA/MIRTK.git";
src = fetchFromGitHub {
owner = "BioMedIA";
repo = "MIRTK";
rev = "v${version}";
sha256 = "0i2v97m66ir5myvi5b123r7zcagwy551b73s984gk7lksl5yiqxk";
fetchSubmodules = true;
};
cmakeFlags = "-DWITH_VTK=ON -DBUILD_ALL_MODULES=ON -DBUILD_TESTING=ON";