at 23.11-beta 39 lines 1.2 kB view raw
1{ lib, stdenv, makeWrapper, fetchurl, jre }: 2 3let 4 pname = "allure"; 5 version = "2.24.1"; 6in 7stdenv.mkDerivation rec { 8 inherit pname version; 9 nativeBuildInputs = [ makeWrapper ]; 10 11 buildInputs = [ jre ]; 12 13 src = fetchurl { 14 url = "https://github.com/allure-framework/allure2/releases/download/${version}/allure-${version}.tgz"; 15 sha256 = "sha256-pUNHE1bJclo8fsHBj6FUHqp6SZtC+RCrmICgn9/PL9c="; 16 }; 17 dontConfigure = true; 18 dontBuild = true; 19 20 installPhase = '' 21 mkdir -p "$out/share" 22 cd "$out/share" 23 tar xvzf $src 24 mkdir -p "$out/bin" 25 makeWrapper $out/share/${pname}-${version}/bin/allure $out/bin/${pname} \ 26 --prefix PATH : "${jre}/bin" 27 ''; 28 29 dontCheck = true; 30 31 meta = with lib; { 32 homepage = "https://docs.qameta.io/allure/"; 33 description = "Allure Report is a flexible, lightweight multi-language test reporting tool."; 34 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"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ happysalada ]; 37 }; 38} 39