2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper,
|
2018-12-15 03:50:31 +00:00
|
|
|
perlPackages,
|
2017-09-25 17:17:49 +01:00
|
|
|
libminc, octave, coreutils, minc_tools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "minc-widgets";
|
2017-09-26 18:22:46 +01:00
|
|
|
name = "${pname}-2016-04-20";
|
2017-09-25 17:17:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BIC-MNI";
|
|
|
|
repo = pname;
|
|
|
|
rev = "f08b643894c81a1a2e0fbfe595a17a42ba8906db";
|
|
|
|
sha256 = "1b9g6lf37wpp211ikaji4rf74rl9xcmrlyqcw1zq3z12ji9y33bm";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
|
|
buildInputs = [ libminc ];
|
2018-12-15 03:50:31 +00:00
|
|
|
propagatedBuildInputs = (with perlPackages; [ perl GetoptTabular MNI-Perllib ]) ++ [ octave coreutils minc_tools ];
|
2017-09-25 17:17:49 +01:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for p in $out/bin/*; do
|
2021-01-15 13:21:58 +00:00
|
|
|
wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${lib.makeBinPath [ coreutils minc_tools ]}";
|
2017-09-25 17:17:49 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-25 17:17:49 +01:00
|
|
|
homepage = "https://github.com/BIC-MNI/${pname}";
|
|
|
|
description = "Collection of Perl and shell scripts for processing MINC files";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
2017-09-26 18:22:46 +01:00
|
|
|
license = licenses.free;
|
2017-09-25 17:17:49 +01:00
|
|
|
};
|
|
|
|
}
|