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";
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";
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 ];
};
}