diff options
author | Justin Bedo <cu@cua0.org> | 2018-10-26 08:05:28 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-10-26 08:05:28 +1100 |
commit | 2c706aaad54aeec0f224ab7c313ac22aebe0bb9e (patch) | |
tree | e6f8e84d12bcc656f2ca50f0c118102bee32d54b /tools/mutect-app.nix | |
parent | 4ee3f9f9c24b7dcdaa1be19aadd84454219c43f6 (diff) |
init: mutect
Diffstat (limited to 'tools/mutect-app.nix')
-rw-r--r-- | tools/mutect-app.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/mutect-app.nix b/tools/mutect-app.nix new file mode 100644 index 0000000..02c4f51 --- /dev/null +++ b/tools/mutect-app.nix @@ -0,0 +1,32 @@ +{stdenv, fetchurl, makeWrapper, unzip, fetchFromGitHub}: + +let + oldnix = import (fetchFromGitHub { + owner = "NixOS"; + repo = "nixpkgs"; + rev = "83a893c38a83877588e3ca7ccfeabaa973c30acd"; + sha256 = "0q7214hag7h95irvhkdb648m09b9jspb0raw1qjrx7y4grzb165h"; + }) {}; + + jre = oldnix.openjdk7; + +in stdenv.mkDerivation rec { + name = "mutect-${version}"; + version = "1.1.5"; + + src = fetchurl { + url = "https://github.com/broadinstitute/mutect/releases/download/${version}/muTect-${version}-bin.zip"; + sha256 = "1pq7iv720bp970qsyyshwk98xdb7naw566y6gk9cpj6bmm08z9v3"; + }; + + buildInputs = [ makeWrapper jre unzip ]; + + unpackPhase = '' + unzip $src -d $TMPDIR + ''; + installPhase = '' + install -Dt $out/libexec/mutect muTect-${version}.jar + mkdir $out/bin + makeWrapper ${jre}/bin/java $out/bin/mutect --add-flags "-jar $out/libexec/mutect/muTect-${version}.jar" + ''; +} |