2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
fetchurl,
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
writeText,
|
|
|
|
jdk,
|
|
|
|
makeWrapper,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "soapui";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "5.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-24 18:47:55 +00:00
|
|
|
url = "https://dl.eviware.com/soapuios/${version}/SoapUI-${version}-linux-bin.tar.gz";
|
|
|
|
sha256 = "sha256-pT0ZANVC7Sv7zxMDPY86aclIUGZeazOZadiVVsmEjtw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
|
|
buildInputs = [jdk];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-08-05 21:33:18 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp -R bin lib $out/share/java
|
|
|
|
|
|
|
|
makeWrapper $out/share/java/bin/soapui.sh $out/bin/soapui --set SOAPUI_HOME $out/share/java
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
2021-08-05 21:33:18 +00:00
|
|
|
# Adjust java path to point to derivation paths
|
2020-04-24 23:36:52 +00:00
|
|
|
(writeText "soapui-${version}.patch" ''
|
|
|
|
--- a/bin/soapui.sh
|
|
|
|
+++ b/bin/soapui.sh
|
2023-01-11 07:51:40 +00:00
|
|
|
@@ -50,7 +50,7 @@
|
|
|
|
#JAVA 16
|
|
|
|
JAVA_OPTS="$JAVA_OPTS --illegal-access=permit"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
-JFXRTPATH=`java -cp $SOAPUI_CLASSPATH com.eviware.soapui.tools.JfxrtLocator`
|
|
|
|
+JFXRTPATH=`${jdk}/bin/java -cp $SOAPUI_CLASSPATH com.eviware.soapui.tools.JfxrtLocator`
|
|
|
|
SOAPUI_CLASSPATH=$JFXRTPATH:$SOAPUI_CLASSPATH
|
|
|
|
|
|
|
|
if $darwin
|
2023-01-11 07:51:40 +00:00
|
|
|
@@ -85,4 +85,4 @@
|
2020-04-24 23:36:52 +00:00
|
|
|
echo =
|
|
|
|
echo ================================
|
|
|
|
|
|
|
|
-java $JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.SoapUI "$@"
|
|
|
|
+${jdk}/bin/java $JAVA_OPTS -cp $SOAPUI_CLASSPATH com.eviware.soapui.SoapUI "$@"
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
passthru.tests = {inherit (nixosTests) soapui;};
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Most Advanced REST & SOAP Testing Tool in the World";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.soapui.org/";
|
2024-06-24 18:47:55 +00:00
|
|
|
sourceProvenance = with sourceTypes; [binaryBytecode];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = "SoapUI End User License Agreement";
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = with maintainers; [gerschtli];
|
|
|
|
platforms = platforms.linux; # we don't fetch the dmg yet
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "soapui";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|