Merge pull request #48044 from schneefux/pkg/fetchfromgithub

treewide: Use fetchFromGitHub instead of fetchurl
This commit is contained in:
Renaud
2018-11-14 09:48:22 +01:00
committed by GitHub
11 changed files with 70 additions and 52 deletions
@@ -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";