niftyseg: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-13 15:34:46 +01:00
parent cb448459d0
commit e1bd890fb0

View File

@ -1,11 +1,14 @@
{ lib, stdenv, fetchurl, cmake, eigen, zlib }:
{ lib, stdenv, fetchFromGitHub, cmake, eigen, zlib }:
stdenv.mkDerivation rec {
pname = "niftyseg";
version = "1.0";
src = fetchurl {
url = "https://github.com/KCL-BMEIS/NiftySeg/archive/v${version}.tar.gz";
sha256 = "11q6yldsxp3k6gfp94c0xhcan2y3finzv8lzizmrc79yps3wjkn0";
src = fetchFromGitHub {
owner = "KCL-BMEIS";
repo = "NiftySeg";
rev = "v${version}";
sha256 = "sha256-FDthq1ild9XOw3E3O7Lpfn6hBF1Frhv1NxfEA8500n8=";
};
nativeBuildInputs = [ cmake ];