summary refs log tree commit diff
path: root/pkgs/development/tools/allure/default.nix
blob: 2988a559aa72feb55eba2a4b6312e466315f1b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, stdenv, makeWrapper, fetchurl, jre }:

let
  pname = "allure";
  version = "2.17.3";
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";
    sha256 = "sha256-WGeCzWwyLEb4WmlA6Vs8L2TL3NTL6sky5TLeiwV8iJY=";
  };
  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 ];
  };
}