11 stdenvNoCC.mkDerivation (finalAttrs: {
16 url = "mirror://maven/org/wiremock/wiremock-standalone/${finalAttrs.version}/wiremock-standalone-${finalAttrs.version}.jar";
17 hash = "sha256-cjqIDVDTsKFFrw3wfleMLLhed/6yIx5pkcmhNmkmkSw=";
22 nativeBuildInputs = [ makeWrapper ];
25 mkdir -p "$out"/{share/wiremock,bin}
26 cp ${finalAttrs.src} "$out/share/wiremock/wiremock.jar"
28 makeWrapper ${jre}/bin/java $out/bin/${finalAttrs.meta.mainProgram} \
29 --add-flags "-jar $out/share/wiremock/wiremock.jar"
33 tests.version = testers.testVersion {
34 command = "${lib.getExe finalAttrs.finalPackage} --version";
35 package = finalAttrs.finalPackage;
37 updateScript = gitUpdater {
38 url = "https://github.com/wiremock/wiremock.git";
39 ignoredVersions = "(alpha|beta|rc).*";
44 description = "Flexible tool for building mock APIs";
45 homepage = "https://wiremock.org/";
46 changelog = "https://github.com/wiremock/wiremock/releases/tag/${finalAttrs.version}";
47 maintainers = with lib.maintainers; [ bobvanderlinden anthonyroussel ];
48 mainProgram = "wiremock";
49 platforms = jre.meta.platforms;
50 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
51 license = lib.licenses.asl20;