1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

inormalize: init at 1.0.20 (develop branch)

This commit is contained in:
Ben Darwin 2017-09-25 14:20:56 -04:00
parent 54c543b03b
commit e90d1e8631
4 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, cmake, makeWrapper,
perl, GetoptTabular, MNI-Perllib,
libminc, EBTKS }:
stdenv.mkDerivation rec {
pname = "inormalize";
name = "${pname}-1.0.20";
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "79cea9cdfe7b99abfd40afda89ab2253b596ad2f";
sha256 = "1ahqv5q0ljvji99a5q8azjkdf6bgp6nr8lwivkqwqs3jm0k5clq7";
};
patches = [ ./lgmask-interp.patch ./nu_correct_norm-interp.patch ];
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ libminc EBTKS ];
propagatedBuildInputs = [ perl GetoptTabular MNI-Perllib ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" "-DEBTKS_DIR=${EBTKS}/lib/" ];
checkPhase = "ctest --output-on-failure"; # but no tests
postFixup = ''
for p in $out/bin/*; do
wrapProgram $p --prefix PERL5LIB : $PERL5LIB
done
'';
meta = with stdenv.lib; {
homepage = "https://github.com/BIC-MNI/${pname}";
description = "Program to normalize intensity of MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
};
}

View file

@ -0,0 +1,10 @@
diff --git a/lgmask.in b/lgmask.in
index 17dbe4d..2195d91 100644
--- a/lgmask.in
+++ b/lgmask.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/env perl
#---------------------------------------------------------------------------
#@COPYRIGHT :

View file

@ -0,0 +1,10 @@
diff --git a/nu_correct_norm.in b/nu_correct_norm.in
index 1dc84ac..1bc6235 100644
--- a/nu_correct_norm.in
+++ b/nu_correct_norm.in
@@ -1,4 +1,4 @@
-#! @PERL@
+#! /usr/bin/perl
#---------------------------------------------------------------------------
#@COPYRIGHT :

View file

@ -19741,6 +19741,10 @@ with pkgs;
igv = callPackage ../applications/science/biology/igv { };
inormalize = callPackage ../applications/science/biology/inormalize {
inherit (perlPackages) GetoptTabular MNI-Perllib;
};
iv = callPackage ../applications/science/biology/iv {
neuron-version = neuron.version;
};