Commit 3a506a34 authored by Thomas Gerbet's avatar Thomas Gerbet
Browse files
parent d473fe63
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  callPackage,
  fetchurl,
  fetchMavenArtifact,
  gitUpdater,
  mkRubyVersion,
  makeBinaryWrapper,
@@ -11,15 +12,15 @@

let
  # The version number here is whatever is reported by the RUBY_VERSION string
  rubyVersion = mkRubyVersion "3" "1" "4" "";
  rubyVersion = mkRubyVersion "3" "4" "2" "";
in
stdenv.mkDerivation (finalAttrs: {
  pname = "jruby";
  version = "10.0.0.0";
  version = "10.0.2.0";

  src = fetchurl {
    url = "https://s3.amazonaws.com/jruby.org/downloads/${finalAttrs.version}/jruby-bin-${finalAttrs.version}.tar.gz";
    hash = "sha256-Qn2YJ+0j/mtNEf5hZlx13XR2ujagQ4N26zEM4qjSRzM=";
    url = "https://repo1.maven.org/maven2/org/jruby/jruby-dist/${finalAttrs.version}/jruby-dist-${finalAttrs.version}-bin.tar.gz";
    hash = "sha256-uKAm84qphGGgTtCqCyCJHOJX7L5T4SRxnOnuW4BFJfE=";
  };

  nativeBuildInputs = [ makeBinaryWrapper ];
@@ -27,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
  installPhase = ''
    mkdir -pv $out/share/jruby/docs
    mv * $out
    rm $out/bin/*.{bat,dll,exe,sh}
    rm $out/bin/*.{bat,dll,exe}
    mv $out/samples $out/share/jruby/
    mv $out/BSDL $out/COPYING $out/LEGAL $out/LICENSE* $out/share/jruby/docs/

@@ -36,8 +37,6 @@ stdenv.mkDerivation (finalAttrs: {
        --set JAVA_HOME ${jre.home}
    done

    ln -s $out/bin/jruby $out/bin/ruby

    # Bundler tries to create this directory
    mkdir -pv $out/${finalAttrs.passthru.gemPath}
    mkdir -p $out/nix-support