base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / al / allure / package.nix
blob9fc8d9bc285889f37464f83f36b974e28cc8cc4c
1 { lib
2 , stdenv
3 , makeWrapper
4 , fetchurl
5 , jre
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "allure";
10   version = "2.31.0";
12   src = fetchurl {
13     url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
14     hash = "sha256-rhuIf+lwxw55SscOmtCsbrcIdjpTTM9joQbMbx8G0Uw=";
15   };
17   dontConfigure = true;
18   dontBuild = true;
20   nativeBuildInputs = [ makeWrapper ];
21   buildInputs = [ jre ];
23   installPhase = ''
24     runHook preInstall
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"
32     runHook postInstall
33   '';
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   };