mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
niftyseg: switch to fetchFromGitHub
This commit is contained in:
parent
cb448459d0
commit
e1bd890fb0
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user