10 stdenv.mkDerivation rec {
15 url = "https://dl.eviware.com/soapuios/${version}/SoapUI-${version}-linux-bin.tar.gz";
16 sha256 = "sha256-pT0ZANVC7Sv7zxMDPY86aclIUGZeazOZadiVVsmEjtw=";
19 nativeBuildInputs = [makeWrapper];
25 mkdir -p $out/share/java
26 cp -R bin lib $out/share/java
28 makeWrapper $out/share/java/bin/soapui.sh $out/bin/soapui --set SOAPUI_HOME $out/share/java
34 # Adjust java path to point to derivation paths
35 (writeText "soapui-${version}.patch" ''
40 JAVA_OPTS="$JAVA_OPTS --illegal-access=permit"
42 -JFXRTPATH=`java -cp $SOAPUI_CLASSPATH com.eviware.soapui.tools.JfxrtLocator`
43 +JFXRTPATH=`${jdk}/bin/java -cp $SOAPUI_CLASSPATH com.eviware.soapui.tools.JfxrtLocator`
44 SOAPUI_CLASSPATH=$JFXRTPATH:$SOAPUI_CLASSPATH
49 echo ================================
51 -java $JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.SoapUI "$@"
52 +${jdk}/bin/java $JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.SoapUI "$@"
56 passthru.tests = {inherit (nixosTests) soapui;};
59 description = "Most Advanced REST & SOAP Testing Tool in the World";
60 homepage = "https://www.soapui.org/";
61 sourceProvenance = with sourceTypes; [binaryBytecode];
62 license = "SoapUI End User License Agreement";
63 maintainers = with maintainers; [gerschtli];
64 platforms = platforms.linux; # we don't fetch the dmg yet
65 mainProgram = "soapui";