3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/biology/star/default.nix

40 lines
857 B
Nix
Raw Normal View History

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