about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-01-27 21:53:16 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-01-27 21:53:16 +0200
commitc3a658deb1954165f12d92dfe36204d4c5cc2ec8 (patch)
treef115d121018d6ee13fcf9e566acb1cd1daf7d5df /pkgs/applications/science
parentf968949c75d77bf1344883dec65b5a5323c24d6d (diff)
parent355a6ca18971b75219fa6bcf20902a2ac2d9b3e3 (diff)
downloadnixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.tar
nixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.tar.gz
nixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.tar.bz2
nixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.tar.lz
nixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.tar.xz
nixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.tar.zst
nixlib-c3a658deb1954165f12d92dfe36204d4c5cc2ec8.zip
Merge remote-tracking branch 'upstream/master' into staging
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/biology/star/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/star/default.nix b/pkgs/applications/science/biology/star/default.nix
new file mode 100644
index 000000000000..1642739140d6
--- /dev/null
+++ b/pkgs/applications/science/biology/star/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, zlib }:
+
+stdenv.mkDerivation rec {
+  name = "star-${version}";
+  version = "2.5.3a";
+
+  src = fetchFromGitHub {
+    repo = "STAR";
+    owner = "alexdobin";
+    rev = version;
+    sha256 = "1fd9xl7i1zxgsxn2qf6gz8s42g2djm29qmp6qb35d8nnxh8ns54x";
+  };
+
+  sourceRoot = "source/source";
+  
+  postPatch = "sed 's:/bin/rm:rm:g' -i Makefile";
+  
+  buildInputs = [ zlib ];
+  
+  buildPhase = "make STAR STARlong";
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp STAR STARlong $out/bin
+  '';
+  
+  meta = with stdenv.lib; {
+    description = "Spliced Transcripts Alignment to a Reference";
+    homepage = https://github.com/alexdobin/STAR;
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.arcadio ];
+  };
+}