2018-01-22 18:27:50 +00:00
|
|
|
{ stdenv, fetchFromGitHub, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-06 17:10:34 +01:00
|
|
|
pname = "star";
|
|
|
|
version = "2.7.1a";
|
2018-01-22 18:27:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "STAR";
|
|
|
|
owner = "alexdobin";
|
|
|
|
rev = version;
|
2019-06-06 17:10:34 +01:00
|
|
|
sha256 = "0n6g4s4hgw7qygs1z97j7a2dgz8gfaa4cv5pjvvvmarvk0x07hyg";
|
2018-01-22 18:27:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/source";
|
2019-06-06 17:10:34 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace "/bin/rm" "rm"
|
|
|
|
'';
|
|
|
|
|
2018-01-22 18:27:50 +00:00
|
|
|
buildInputs = [ zlib ];
|
2019-06-06 17:10:34 +01:00
|
|
|
|
|
|
|
buildFlags = [ "STAR" "STARlong" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2018-01-22 18:27:50 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-06-06 17:10:34 +01:00
|
|
|
runHook preInstall
|
|
|
|
install -D STAR STARlong -t $out/bin
|
|
|
|
runHook postInstall
|
2018-01-22 18:27:50 +00:00
|
|
|
'';
|
2019-06-06 17:10:34 +01:00
|
|
|
|
2018-01-22 18:27:50 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Spliced Transcripts Alignment to a Reference";
|
2019-06-06 17:10:34 +01:00
|
|
|
homepage = "https://github.com/alexdobin/STAR";
|
2018-01-22 18:27:50 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.arcadio ];
|
|
|
|
};
|
|
|
|
}
|