blob: 0d140914638e7a79a0fe73ff1a78d6e5bbb129e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
coreutils,
perlPackages,
bicpl,
libminc,
zlib,
minc_tools,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "conglomerate";
version = "unstable-2023-01-19";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "6fb26084f2871a85044e2e4afc868982702b40ed";
hash = "sha256-Inr4b2bxguzkcRQBURObsQQ0Rb3H/Zz6hEzNRd+IX3w=";
};
nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [
libminc
zlib
bicpl
];
propagatedBuildInputs =
[
coreutils
minc_tools
]
++ (with perlPackages; [
perl
GetoptTabular
MNI-Perllib
]);
cmakeFlags = [
"-DLIBMINC_DIR=${libminc}/lib/cmake"
"-DBICPL_DIR=${bicpl}/lib"
];
postFixup = ''
for p in $out/bin/*; do
wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${
lib.makeBinPath [
coreutils
minc_tools
]
}";
done
'';
meta = {
homepage = "https://github.com/BIC-MNI/conglomerate";
description = "More command-line utilities for working with MINC files";
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.unix;
license = lib.licenses.hpndUc;
};
}
|