nixpkgs/pkgs/development/libraries/science/biology/EBTKS/default.nix

29 lines
786 B
Nix
Raw Normal View History

2017-09-24 23:11:30 +01:00
{ stdenv, fetchFromGitHub, cmake, libminc }:
stdenv.mkDerivation rec {
pname = "EBTKS";
2017-09-27 04:50:51 +01:00
name = "${pname}-2017-09-23";
2017-09-24 23:11:30 +01:00
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = "67e4e197d8a32d6462c9bdc7af44d64ebde4fb5c";
sha256 = "1a1qw6i47fs1izx60l1ysabpmyx9j5sjnbdv8b47wi2xcc9i3hpq";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libminc ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" ];
2017-09-24 23:11:30 +01:00
checkPhase = "ctest --output-on-failure"; # but cmake doesn't run the tests ...
2017-09-24 23:11:30 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/BIC-MNI/${pname}";
description = "Library for working with MINC files";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
licenses = licenses.free;
2017-09-24 23:11:30 +01:00
};
}