2018-01-22 18:27:50 +00:00
|
|
|
{ stdenv, fetchFromGitHub, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-06 17:10:34 +01:00
|
|
|
pname = "star";
|
2020-09-05 19:44:51 +01:00
|
|
|
version = "2.7.5c";
|
2018-01-22 18:27:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "STAR";
|
|
|
|
owner = "alexdobin";
|
|
|
|
rev = version;
|
2020-09-05 19:44:51 +01:00
|
|
|
sha256 = "1plx9akrzwjk7f2j94l9ss0apg0asqmrf2bp0728d4bvlhnzmjyy";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|