about summary refs log tree commit diff
path: root/pkgs/applications/science/biology
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2017-03-07 16:33:04 +1100
committerRobert Helgesson <robert@rycee.net>2017-03-08 22:43:50 +0100
commit1ac797861b1e020c433ccda24b3ea74032fc7354 (patch)
tree1393eac9e0d66133a101d81920218e4dcf2ab625 /pkgs/applications/science/biology
parent076e513b94a4bd42c635394c393fb583f9dbadc3 (diff)
downloadnixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.tar
nixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.gz
nixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.bz2
nixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.lz
nixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.xz
nixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.zst
nixlib-1ac797861b1e020c433ccda24b3ea74032fc7354.zip
SnpEff: init at 4.3i
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r--pkgs/applications/science/biology/snpeff/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/snpeff/default.nix b/pkgs/applications/science/biology/snpeff/default.nix
new file mode 100644
index 000000000000..6c7a6b969ee6
--- /dev/null
+++ b/pkgs/applications/science/biology/snpeff/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchurl, jre, unzip, makeWrapper}:
+
+stdenv.mkDerivation rec {
+  name = "snpeff-${version}";
+  version = "4.3i";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/project/snpeff/snpEff_latest_core.zip";
+    sha256 = "0i1slg201c8yjfr4wrg4xcgzwi0c8b9l3fb1i73fphq6q6zdblzb";
+  };
+
+  buildInputs = [ unzip jre makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out/libexec/snpeff
+    cp *.jar *.config $out/libexec/snpeff
+
+    mkdir -p $out/bin
+    makeWrapper ${jre}/bin/java $out/bin/snpeff --add-flags "-jar $out/libexec/snpeff/snpEff.jar"
+    makeWrapper ${jre}/bin/java $out/bin/snpsift --add-flags "-jar $out/libexec/snpeff/SnpSift.jar"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Genetic variant annotation and effect prediction toolbox.";
+    license = licenses.lgpl3;
+    homepage = http://snpeff.sourceforge.net/;
+    maintainers = with maintainers; [ jbedo ];
+    platforms = platforms.all;
+  };
+
+}