diff options
author | Justin Bedo <cu@cua0.org> | 2017-03-07 16:33:04 +1100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-03-08 22:43:50 +0100 |
commit | 1ac797861b1e020c433ccda24b3ea74032fc7354 (patch) | |
tree | 1393eac9e0d66133a101d81920218e4dcf2ab625 /pkgs/applications/science/biology | |
parent | 076e513b94a4bd42c635394c393fb583f9dbadc3 (diff) | |
download | nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.tar nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.gz nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.bz2 nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.lz nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.xz nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.tar.zst nixpkgs-1ac797861b1e020c433ccda24b3ea74032fc7354.zip |
SnpEff: init at 4.3i
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r-- | pkgs/applications/science/biology/snpeff/default.nix | 31 |
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 00000000000..6c7a6b969ee --- /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; + }; + +} |