11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
16 owner = "RealTimeGenomics";
19 hash = "sha256-fMrrjrgaGxBVxn6qMq2g0oFv6qtfhZcQlkvv1E9Os6Y=";
25 git # Required by build.xml to manage the build revision
38 cp build/rtg-tools.jar $out/bin/RTG.jar
39 cp installer/rtg $out/bin/
44 # Use a location outside nix (must be writable)
45 substituteInPlace installer/rtg \
46 --replace-fail '$THIS_DIR/rtg.cfg' '$HOME/.config/rtg-tools/rtg.cfg' \
47 --replace-fail 'RTG_JAVA="java"' 'RTG_JAVA="${jdk}/lib/openjdk/bin/java"'
49 sed -i '/USER_JAVA_OPTS=$RTG_JAVA_OPTS/a mkdir -p $HOME/.config/rtg-tools' installer/rtg
53 homepage = "https://github.com/RealTimeGenomics/rtg-tools";
54 description = "Useful utilities for dealing with VCF files and sequence data, especially vcfeval";
55 license = licenses.bsd2;
56 platforms = [ "x86_64-linux" ];
57 maintainers = with maintainers; [ apraga ];