2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, coreutils, perlPackages, bicpl, libminc, zlib, minc_tools,
|
2018-12-15 04:50:31 +01:00
|
|
|
makeWrapper }:
|
2018-04-28 00:52:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "conglomerate";
|
2020-07-22 22:17:18 +02:00
|
|
|
version = "unstable-2017-09-10";
|
2018-04-28 00:52:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BIC-MNI";
|
|
|
|
repo = pname;
|
|
|
|
rev = "7343238bc6215942c7ecc885a224f24433a291b0";
|
|
|
|
sha256 = "1mlqgmy3jc13bv7d01rjwldxq0p4ayqic85xcl222hhifi3w2prr";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
|
|
buildInputs = [ libminc zlib bicpl ];
|
2018-12-15 04:50:31 +01:00
|
|
|
propagatedBuildInputs = [ coreutils minc_tools ] ++ (with perlPackages; [ perl GetoptTabular MNI-Perllib ]);
|
2018-04-28 00:52:46 +02:00
|
|
|
|
2020-07-22 22:17:18 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBMINC_DIR=${libminc}/lib/cmake"
|
|
|
|
"-DBICPL_DIR=${bicpl}/lib"
|
|
|
|
];
|
2018-04-28 00:52:46 +02:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for p in $out/bin/*; do
|
2021-01-15 14:21:58 +01:00
|
|
|
wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${lib.makeBinPath [ coreutils minc_tools ]}";
|
2018-04-28 00:52:46 +02:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/BIC-MNI/conglomerate";
|
2018-04-28 00:52:46 +02:00
|
|
|
description = "More command-line utilities for working with MINC files";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.free;
|
|
|
|
};
|
|
|
|
}
|