Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ezminc: unstable-2019-03-12 -> unstable-2023-10-06; unbreak #342963

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 50 additions & 20 deletions pkgs/applications/science/biology/EZminc/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,60 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libminc, bicpl, itk, fftwFloat, gsl }:
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
perl,
libminc,
bicpl,
itk_5_2,
fftwFloat,
gsl,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "EZminc";
version = "unstable-2019-03-12";
version = "unstable-2023-10-06";

src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "5e3333ee356f914d34d66d33ea8df809c7f7fa51";
sha256 = "0wy8cppf5xpgfqvgb3mqs1cjh81n6qzkk6zxv29wvng8nar9wsy4";
owner = "BIC-MNI";
repo = "EZminc";
rev = "5fdf112e837000d155891e423041d7065ea13c3f";
hash = "sha256-0KdFIWRHnIHrau0ysGMVpg3oz01UdIvna1y2I4YEWJw=";
};

nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ itk libminc bicpl fftwFloat gsl ];
postPatch = ''
patchShebangs scripts/*
'';

cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake"
"-DEZMINC_BUILD_TOOLS=TRUE"
"-DEZMINC_BUILD_MRFSEG=TRUE"
"-DEZMINC_BUILD_DD=TRUE" ];
nativeBuildInputs = [
cmake
pkg-config
];

meta = with lib; {
homepage = "https://github.com/BIC-MNI/${pname}";
buildInputs = [
itk_5_2
libminc
bicpl
fftwFloat
gsl
perl
];

cmakeFlags = [
"-DLIBMINC_DIR=${libminc}/lib/cmake"
"-DEZMINC_BUILD_TOOLS=TRUE"
"-DEZMINC_BUILD_MRFSEG=TRUE"
# "-DEZMINC_BUILD_DD=TRUE" # numerous compilation issues
];

doCheck = false; # test programs/data exist but no actual test harness

meta = {
homepage = "https://github.com/BIC-MNI/${finalAttrs.pname}";
description = "Collection of Perl and shell scripts for processing MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.free;
broken = true; # ITK5 compatibility issue (https://github.com/BIC-MNI/EZminc/issues/15)
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.linux; # can't detect opengl on Darwin
license = lib.licenses.free;
};
}
})