2022-03-20 19:17:03 +00:00
|
|
|
{ lib, stdenv, makeWrapper, fetchurl, jre }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "allure";
|
2023-04-30 05:01:25 +00:00
|
|
|
version = "2.22.0";
|
2022-03-20 19:17:03 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit pname version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [ jre ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/allure-framework/allure2/releases/download/${version}/allure-${version}.tgz";
|
2023-04-30 05:01:25 +00:00
|
|
|
sha256 = "sha256-zt8O4hl7/G2kb4PbYOUs9R6+M3xl37URAE/Ccp2dPUk=";
|
2022-03-20 19:17:03 +00:00
|
|
|
};
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share"
|
|
|
|
cd "$out/share"
|
|
|
|
tar xvzf $src
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
makeWrapper $out/share/${pname}-${version}/bin/allure $out/bin/${pname} \
|
|
|
|
--prefix PATH : "${jre}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://docs.qameta.io/allure/";
|
|
|
|
description = "Allure Report is a flexible, lightweight multi-language test reporting tool.";
|
|
|
|
longDescription = "Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|