tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
allure: modernize
Alexis Hildebrandt
2 years ago
b198ac32
adc9566b
+29
-21
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
allure
default.nix
+29
-21
pkgs/development/tools/allure/default.nix
···
1
-
{ lib, stdenv, makeWrapper, fetchurl, jre }:
0
0
0
0
0
2
3
-
let
4
pname = "allure";
5
version = "2.29.0";
6
-
in
7
-
stdenv.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-ohcVXblnCrNs57BWmz+wUwplfIG9fOW8l08LuipNhPs=";
16
};
0
17
dontConfigure = true;
18
dontBuild = true;
19
0
0
0
20
installPhase = ''
21
-
mkdir -p "$out/share"
0
0
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"
0
0
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.";
0
0
0
0
0
0
0
34
mainProgram = "allure";
35
-
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";
36
-
license = licenses.asl20;
37
-
maintainers = with maintainers; [ happysalada ];
38
};
39
-
}
40
-
···
1
+
{ lib
2
+
, stdenv
3
+
, makeWrapper
4
+
, fetchurl
5
+
, jre
6
+
}:
7
8
+
stdenv.mkDerivation (finalAttrs: {
9
pname = "allure";
10
version = "2.29.0";
0
0
0
0
0
0
11
12
src = fetchurl {
13
+
url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
14
+
hash = "sha256-ohcVXblnCrNs57BWmz+wUwplfIG9fOW8l08LuipNhPs=";
15
};
16
+
17
dontConfigure = true;
18
dontBuild = true;
19
20
+
nativeBuildInputs = [ makeWrapper ];
21
+
buildInputs = [ jre ];
22
+
23
installPhase = ''
24
+
runHook preInstall
25
+
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} \
0
30
--prefix PATH : "${jre}/bin"
31
+
32
+
runHook postInstall
33
'';
34
35
+
meta = {
0
0
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 ];
0
0
47
};
48
+
})
0