Commit 6e99fa33 authored by R. RyanTM's avatar R. RyanTM Committed by Alexis Praga
Browse files

rtg-tools: 3.12.1 -> 3.13

Fix jdk path.
parent 6ed432a9
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -13,13 +13,13 @@

stdenv.mkDerivation rec {
  pname = "rtg-tools";
  version = "3.12.1";
  version = "3.13";

  src = fetchFromGitHub {
    owner = "RealTimeGenomics";
    repo = "rtg-tools";
    rev = version;
    hash = "sha256-fMrrjrgaGxBVxn6qMq2g0oFv6qtfhZcQlkvv1E9Os6Y=";
    hash = "sha256-vPzKrgnX6BCQmn9aOVWWpFLC6SbPBHZhZ+oL1LCbvmo=";
  };

  nativeBuildInputs = [
@@ -47,12 +47,11 @@ stdenv.mkDerivation rec {
    # Use a location outside nix (must be writable)
    substituteInPlace installer/rtg \
      --replace-fail  '$THIS_DIR/rtg.cfg' '$HOME/.config/rtg-tools/rtg.cfg'  \
      --replace-fail 'RTG_JAVA="java"' 'RTG_JAVA="${jdk}/lib/opendk/bin/java"' \
       --replace-fail 'RTG_JAVA="java"' 'RTG_JAVA="${lib.getExe jdk}"' \
      --replace-fail uname ${lib.getExe' coreutils "uname"} \
      --replace-fail awk ${lib.getExe gawk} \
      --replace-fail "hostname -s" "${lib.getExe hostname} -s"


    sed -i '/USER_JAVA_OPTS=$RTG_JAVA_OPTS/a mkdir -p $HOME/.config/rtg-tools'  installer/rtg
  '';