1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Merge pull request #191548 from apraga/gatk-patched

This commit is contained in:
Sandro 2022-10-11 00:50:53 +02:00 committed by GitHub
commit f4f7d38602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchzip }:
{ lib, stdenv, fetchzip, jre, makeWrapper, python3 }:
stdenv.mkDerivation rec {
pname = "gatk";
@ -8,10 +8,19 @@ stdenv.mkDerivation rec {
sha256 = "0hjlsl7fxf3ankyjidqhwxc70gjh6z4lnjzw6b5fldzb0qvgfvy8";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python3 ];
dontUnpack = true;
installPhase = ''
mkdir -p $out/bin
install -m755 -D $src/gatk $out/bin/
install -m755 -D $src/gatk-package-${version}-local.jar $out/bin/
install -m755 -D $src/gatk-package-${version}-spark.jar $out/bin/
install -m755 -D $src/gatk $out/bin/
'';
postFixup = ''
wrapProgram $out/bin/gatk --prefix PATH : ${lib.makeBinPath [ jre ]}
'';
meta = with lib; {