conglomerate: nixfmt-rfc-style and modernization

This commit is contained in:
Raghav Sood
2024-05-14 14:26:29 +08:00
parent bc4eacca8c
commit b8b18a2517

View File

@@ -1,20 +1,47 @@
{ lib, stdenv, fetchFromGitHub, cmake, coreutils, perlPackages, bicpl, libminc, zlib, minc_tools, {
makeWrapper }: lib,
stdenv,
fetchFromGitHub,
cmake,
coreutils,
perlPackages,
bicpl,
libminc,
zlib,
minc_tools,
makeWrapper,
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "conglomerate"; pname = "conglomerate";
version = "unstable-2017-09-10"; version = "unstable-2017-09-10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BIC-MNI"; owner = "BIC-MNI";
repo = pname; repo = pname;
rev = "7343238bc6215942c7ecc885a224f24433a291b0"; rev = "7343238bc6215942c7ecc885a224f24433a291b0";
sha256 = "1mlqgmy3jc13bv7d01rjwldxq0p4ayqic85xcl222hhifi3w2prr"; hash = "sha256-OV/BR3QRQiEEZb0gFrFX5ALcG+UyB9DOXiMwOXx9mNY=";
}; };
nativeBuildInputs = [ cmake makeWrapper ]; nativeBuildInputs = [
buildInputs = [ libminc zlib bicpl ]; cmake
propagatedBuildInputs = [ coreutils minc_tools ] ++ (with perlPackages; [ perl GetoptTabular MNI-Perllib ]); makeWrapper
];
buildInputs = [
libminc
zlib
bicpl
];
propagatedBuildInputs =
[
coreutils
minc_tools
]
++ (with perlPackages; [
perl
GetoptTabular
MNI-Perllib
]);
cmakeFlags = [ cmakeFlags = [
"-DLIBMINC_DIR=${libminc}/lib/cmake" "-DLIBMINC_DIR=${libminc}/lib/cmake"
@@ -23,15 +50,20 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
for p in $out/bin/*; do for p in $out/bin/*; do
wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${lib.makeBinPath [ coreutils minc_tools ]}"; wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${
lib.makeBinPath [
coreutils
minc_tools
]
}";
done done
''; '';
meta = with lib; { meta = {
homepage = "https://github.com/BIC-MNI/conglomerate"; homepage = "https://github.com/BIC-MNI/conglomerate";
description = "More command-line utilities for working with MINC files"; description = "More command-line utilities for working with MINC files";
maintainers = with maintainers; [ bcdarwin ]; maintainers = with lib.maintainers; [ bcdarwin ];
platforms = platforms.unix; platforms = lib.platforms.unix;
license = licenses.hpndUc; license = lib.licenses.hpndUc;
}; };
} }