forked from mirrors/nixpkgs
mirtk: use fetchFromGitHub instead of fetchgit
This commit is contained in:
parent
314593950e
commit
d81a96e601
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
name = "mirtk-${version}";
|
name = "mirtk-${version}";
|
||||||
|
|
||||||
# uses submodules so can't use fetchFromGitHub
|
src = fetchFromGitHub {
|
||||||
src = fetchgit {
|
owner = "BioMedIA";
|
||||||
url = "https://github.com/BioMedIA/MIRTK.git";
|
repo = "MIRTK";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0i2v97m66ir5myvi5b123r7zcagwy551b73s984gk7lksl5yiqxk";
|
sha256 = "0i2v97m66ir5myvi5b123r7zcagwy551b73s984gk7lksl5yiqxk";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = "-DWITH_VTK=ON -DBUILD_ALL_MODULES=ON -DBUILD_TESTING=ON";
|
cmakeFlags = "-DWITH_VTK=ON -DBUILD_ALL_MODULES=ON -DBUILD_TESTING=ON";
|
||||||
|
|
Loading…
Reference in a new issue