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