f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, makeWrapper
|
|
, fetchurl
|
|
, jre
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "allure";
|
|
version = "2.30.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
|
|
hash = "sha256-jYdinK7it2MDwrWZmxPHR5YqZhhVIo2vMZDCX38+igU=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ jre ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{bin,share}
|
|
cd "$out/share"
|
|
tar xvzf $src
|
|
makeWrapper $out/share/${finalAttrs.meta.mainProgram}-${finalAttrs.version}/bin/allure $out/bin/${finalAttrs.meta.mainProgram} \
|
|
--prefix PATH : "${jre}/bin"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
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 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;
|
|
mainProgram = "allure";
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
|
};
|
|
})
|