2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, makeWrapper
|
|
|
|
, fetchurl
|
|
|
|
, jre
|
|
|
|
}:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "allure";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.30.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-jYdinK7it2MDwrWZmxPHR5YqZhhVIo2vMZDCX38+igU=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ jre ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
installPhase = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/{bin,share}
|
2022-03-30 09:31:56 +00:00
|
|
|
cd "$out/share"
|
|
|
|
tar xvzf $src
|
2024-05-15 15:35:15 +00:00
|
|
|
makeWrapper $out/share/${finalAttrs.meta.mainProgram}-${finalAttrs.version}/bin/allure $out/bin/${finalAttrs.meta.mainProgram} \
|
2022-03-30 09:31:56 +00:00
|
|
|
--prefix PATH : "${jre}/bin"
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://docs.qameta.io/allure/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Allure Report is a flexible, lightweight multi-language test reporting tool";
|
2024-05-15 15:35:15 +00:00
|
|
|
longDescription = ''
|
|
|
|
Allure Report is a flexible, lightweight multi-language test reporting
|
|
|
|
tool providing clear graphical reports and allowing everyone involved
|
|
|
|
in the development process to extract the maximum of information from
|
|
|
|
the everyday testing process.
|
|
|
|
'';
|
|
|
|
license = lib.licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "allure";
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|