nixpkgs/pkgs/applications/networking/soapui/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.8 KiB
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, writeText, jdk, makeWrapper, nixosTests }:
2018-06-15 20:12:29 +00:00
stdenv.mkDerivation rec {
pname = "soapui";
2022-12-21 22:25:40 +00:00
version = "5.7.0";
2018-06-15 20:12:29 +00:00
src = fetchurl {
url = "https://s3.amazonaws.com/downloads.eviware/soapuios/${version}/SoapUI-${version}-linux-bin.tar.gz";
2022-12-21 22:25:40 +00:00
sha256 = "sha256-qzhy4yHmOk13dFUd2KEZhXtWY86QwyjJgYxx9GGoN80=";
2018-06-15 20:12:29 +00:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk ];
2018-06-15 20:12:29 +00:00
installPhase = ''
runHook preInstall
2018-06-15 20:12:29 +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
runHook postInstall
2018-06-15 20:12:29 +00:00
'';
patches = [
# Adjust java path to point to derivation paths
2018-06-15 20:12:29 +00:00
(writeText "soapui-${version}.patch" ''
--- a/bin/soapui.sh
+++ b/bin/soapui.sh
2022-12-21 22:25:40 +00:00
@@ -50,7 +50,7 @@
#JAVA 16
JAVA_OPTS="$JAVA_OPTS --illegal-access=permit"
2018-06-15 20:12:29 +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
2022-12-21 22:25:40 +00:00
@@ -85,4 +85,4 @@
2018-06-15 20:12:29 +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 "$@"
'')
];
passthru.tests = { inherit (nixosTests) soapui; };
meta = with lib; {
2018-06-15 20:12:29 +00:00
description = "The Most Advanced REST & SOAP Testing Tool in the World";
homepage = "https://www.soapui.org/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2018-06-15 20:12:29 +00:00
license = "SoapUI End User License Agreement";
maintainers = with maintainers; [ gerschtli ];
platforms = platforms.all;
};
}