summary refs log blame commit diff
path: root/pkgs/applications/science/biology/minc-tools/default.nix
blob: 7864658c95828b679a32b1a06811217f36377910 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                               

                         

                           
 




                                                                    







                                                                                  
                  
 

                                






                                                                       
{ stdenv, fetchFromGitHub, perl, cmake, flex, bison, libminc }:

stdenv.mkDerivation rec {
  name = "${pname}-2.3.00";
  pname = "minc-tools";

  src = fetchFromGitHub {
    owner = "BIC-MNI";
    repo = pname;
    rev = builtins.replaceStrings [ "." ] [ "-" ] name;
    sha256 = "0px5paprx4ds9aln3jdg1pywszgyz2aykgkdbj1y8gc1lwcizsl9";
  };

  nativeBuildInputs = [ cmake flex bison ] ++ (if doCheck then [ perl ] else [ ]);
  buildInputs = [ libminc ];

  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];

  checkPhase = "ctest";
  doCheck = false;

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = https://github.com/BIC-MNI/minc-tools;
    description = "Command-line utilities for working with MINC files";
    maintainers = with maintainers; [ bcdarwin ];
    platforms = platforms.unix;
  };
}