nixpkgs/pkgs/by-name/ez/ezminc/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

61 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
perl,
libminc,
bicpl,
itk_5_2,
fftwFloat,
gsl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "EZminc";
version = "2.2.00-unstable-2023-10-06";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = "EZminc";
rev = "5fdf112e837000d155891e423041d7065ea13c3f";
hash = "sha256-0KdFIWRHnIHrau0ysGMVpg3oz01UdIvna1y2I4YEWJw=";
};
postPatch = ''
patchShebangs scripts/*
'';
nativeBuildInputs = [
cmake
pkg-config
];
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/EZminc";
description = "Collection of Perl and shell scripts for processing MINC files";
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.linux; # can't detect opengl on Darwin
license = lib.licenses.free;
};
})