wiremock: init at 2.35.0
This commit is contained in:
parent
a115bb9bd5
commit
d4b338dd50
31
pkgs/tools/networking/wiremock/default.nix
Normal file
31
pkgs/tools/networking/wiremock/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -37885,6 +37885,8 @@ with pkgs;
|
||||||
|
|
||||||
wire-desktop = callPackage ../applications/networking/instant-messengers/wire-desktop { };
|
wire-desktop = callPackage ../applications/networking/instant-messengers/wire-desktop { };
|
||||||
|
|
||||||
|
wiremock = callPackage ../tools/networking/wiremock { };
|
||||||
|
|
||||||
teseq = callPackage ../applications/misc/teseq { };
|
teseq = callPackage ../applications/misc/teseq { };
|
||||||
|
|
||||||
ape = callPackage ../applications/misc/ape { };
|
ape = callPackage ../applications/misc/ape { };
|
||||||
|
|
Loading…
Reference in a new issue