@@ -0,0 +1,34 @@
1+{ stdenv, fetchFromGitHub, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "star-${version}";
5+ version = "2.5.3a";
6+
7+ src = fetchFromGitHub {
8+ repo = "STAR";
9+ owner = "alexdobin";
10+ rev = version;
11+ sha256 = "1fd9xl7i1zxgsxn2qf6gz8s42g2djm29qmp6qb35d8nnxh8ns54x";
12+ };
13+
14+ sourceRoot = "source/source";
15+
16+ postPatch = "sed 's:/bin/rm:rm:g' -i Makefile";
17+
18+ buildInputs = [ zlib ];
19+
20+ buildPhase = "make STAR STARlong";
21+
22+ installPhase = ''
23+ mkdir -p $out/bin
24+ cp STAR STARlong $out/bin
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ description = "Spliced Transcripts Alignment to a Reference";
29+ homepage = https://github.com/alexdobin/STAR;
30+ license = licenses.gpl3Plus;
31+ platforms = platforms.linux;
32+ maintainers = [ maintainers.arcadio ];
33+ };
34+}