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