1{ lib
2, stdenv
3, makeWrapper
4, fetchurl
5, jre
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "allure";
10 version = "2.30.0";
11
12 src = fetchurl {
13 url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
14 hash = "sha256-jYdinK7it2MDwrWZmxPHR5YqZhhVIo2vMZDCX38+igU=";
15 };
16
17 dontConfigure = true;
18 dontBuild = true;
19
20 nativeBuildInputs = [ makeWrapper ];
21 buildInputs = [ jre ];
22
23 installPhase = ''
24 runHook preInstall
25
26 mkdir -p $out/{bin,share}
27 cd "$out/share"
28 tar xvzf $src
29 makeWrapper $out/share/${finalAttrs.meta.mainProgram}-${finalAttrs.version}/bin/allure $out/bin/${finalAttrs.meta.mainProgram} \
30 --prefix PATH : "${jre}/bin"
31
32 runHook postInstall
33 '';
34
35 meta = {
36 homepage = "https://docs.qameta.io/allure/";
37 description = "Allure Report is a flexible, lightweight multi-language test reporting tool";
38 longDescription = ''
39 Allure Report is a flexible, lightweight multi-language test reporting
40 tool providing clear graphical reports and allowing everyone involved
41 in the development process to extract the maximum of information from
42 the everyday testing process.
43 '';
44 license = lib.licenses.asl20;
45 mainProgram = "allure";
46 maintainers = with lib.maintainers; [ happysalada ];
47 };
48})