Files
nixpkgs/pkgs/by-name/co/conglomerate/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
coreutils,
perlPackages,
bicpl,
libminc,
zlib,
minc_tools,
makeWrapper,
}:
stdenv.mkDerivation {
pname = "conglomerate";
version = "unstable-2023-01-19";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = "conglomerate";
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;
};
}