nixpkgs/pkgs/development/tools/allure/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Normal View History

2024-04-29 20:31:49 +00:00
{ lib
, stdenv
, makeWrapper
, fetchurl
, jre
}:
2022-03-20 19:17:03 +00:00
2024-04-29 20:31:49 +00:00
stdenv.mkDerivation (finalAttrs: {
2022-03-20 19:17:03 +00:00
pname = "allure";
2024-04-25 01:03:02 +00:00
version = "2.29.0";
2022-03-20 19:17:03 +00:00
src = fetchurl {
2024-04-29 20:31:49 +00:00
url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
hash = "sha256-ohcVXblnCrNs57BWmz+wUwplfIG9fOW8l08LuipNhPs=";
2022-03-20 19:17:03 +00:00
};
2024-04-29 20:31:49 +00:00
2022-03-20 19:17:03 +00:00
dontConfigure = true;
dontBuild = true;
2024-04-29 20:31:49 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
2022-03-20 19:17:03 +00:00
installPhase = ''
2024-04-29 20:31:49 +00:00
runHook preInstall
mkdir -p $out/{bin,share}
2022-03-20 19:17:03 +00:00
cd "$out/share"
tar xvzf $src
2024-04-29 20:31:49 +00:00
makeWrapper $out/share/${finalAttrs.meta.mainProgram}-${finalAttrs.version}/bin/allure $out/bin/${finalAttrs.meta.mainProgram} \
2022-03-20 19:17:03 +00:00
--prefix PATH : "${jre}/bin"
2024-04-29 20:31:49 +00:00
runHook postInstall
'';
2022-03-20 19:17:03 +00:00
2024-04-29 20:31:49 +00:00
meta = {
2022-03-20 19:17:03 +00:00
homepage = "https://docs.qameta.io/allure/";
description = "Allure Report is a flexible, lightweight multi-language test reporting tool.";
2024-04-29 20:31:49 +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;
mainProgram = "allure";
2024-04-29 20:31:49 +00:00
maintainers = with lib.maintainers; [ happysalada ];
2022-03-20 19:17:03 +00:00
};
2024-04-29 20:31:49 +00:00
})