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 {
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue