wiremock: init at 2.35.0

This commit is contained in:
Bob van der Linden 2022-11-30 21:33:30 +01:00
parent a115bb9bd5
commit d4b338dd50
No known key found for this signature in database
GPG key ID: EEBE8E3EC4A31364
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "wiremock";
version = "2.35.0";
src = fetchurl {
url = "mirror://maven/com/github/tomakehurst/wiremock-jre8-standalone/${version}/wiremock-jre8-standalone-${version}.jar";
hash = "sha256-rhVq4oEuPPpHDEftBzEA707HeSc3Kk4gPw471THz61c=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p "$out"/{share/wiremock,bin}
cp ${src} "$out/share/wiremock/wiremock.jar"
makeWrapper ${jre}/bin/java $out/bin/${pname} \
--add-flags "-jar $out/share/wiremock/wiremock.jar"
'';
meta = {
description = "A flexible tool for building mock APIs";
homepage = "https://wiremock.org/";
maintainers = with lib.maintainers; [ bobvanderlinden ];
platforms = jre.meta.platforms;
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.asl20;
};
}

View file

@ -37885,6 +37885,8 @@ with pkgs;
wire-desktop = callPackage ../applications/networking/instant-messengers/wire-desktop { };
wiremock = callPackage ../tools/networking/wiremock { };
teseq = callPackage ../applications/misc/teseq { };
ape = callPackage ../applications/misc/ape { };