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
1
-
{ lib, stdenv, makeWrapper, fetchurl, jre }:
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, makeWrapper
4
4
+
, fetchurl
5
5
+
, jre
6
6
+
}:
2
7
3
3
-
let
8
8
+
stdenv.mkDerivation (finalAttrs: {
4
9
pname = "allure";
5
10
version = "2.29.0";
6
6
-
in
7
7
-
stdenv.mkDerivation rec {
8
8
-
inherit pname version;
9
9
-
nativeBuildInputs = [ makeWrapper ];
10
10
-
11
11
-
buildInputs = [ jre ];
12
11
13
12
src = fetchurl {
14
14
-
url = "https://github.com/allure-framework/allure2/releases/download/${version}/allure-${version}.tgz";
15
15
-
sha256 = "sha256-ohcVXblnCrNs57BWmz+wUwplfIG9fOW8l08LuipNhPs=";
13
13
+
url = "https://github.com/allure-framework/allure2/releases/download/${finalAttrs.version}/allure-${finalAttrs.version}.tgz";
14
14
+
hash = "sha256-ohcVXblnCrNs57BWmz+wUwplfIG9fOW8l08LuipNhPs=";
16
15
};
16
16
+
17
17
dontConfigure = true;
18
18
dontBuild = true;
19
19
20
20
+
nativeBuildInputs = [ makeWrapper ];
21
21
+
buildInputs = [ jre ];
22
22
+
20
23
installPhase = ''
21
21
-
mkdir -p "$out/share"
24
24
+
runHook preInstall
25
25
+
26
26
+
mkdir -p $out/{bin,share}
22
27
cd "$out/share"
23
28
tar xvzf $src
24
24
-
mkdir -p "$out/bin"
25
25
-
makeWrapper $out/share/${pname}-${version}/bin/allure $out/bin/${pname} \
29
29
+
makeWrapper $out/share/${finalAttrs.meta.mainProgram}-${finalAttrs.version}/bin/allure $out/bin/${finalAttrs.meta.mainProgram} \
26
30
--prefix PATH : "${jre}/bin"
31
31
+
32
32
+
runHook postInstall
27
33
'';
28
34
29
29
-
dontCheck = true;
30
30
-
31
31
-
meta = with lib; {
35
35
+
meta = {
32
36
homepage = "https://docs.qameta.io/allure/";
33
37
description = "Allure Report is a flexible, lightweight multi-language test reporting tool.";
38
38
+
longDescription = ''
39
39
+
Allure Report is a flexible, lightweight multi-language test reporting
40
40
+
tool providing clear graphical reports and allowing everyone involved
41
41
+
in the development process to extract the maximum of information from
42
42
+
the everyday testing process.
43
43
+
'';
44
44
+
license = lib.licenses.asl20;
34
45
mainProgram = "allure";
35
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
36
-
license = licenses.asl20;
37
37
-
maintainers = with maintainers; [ happysalada ];
46
46
+
maintainers = with lib.maintainers; [ happysalada ];
38
47
};
39
39
-
}
40
40
-
48
48
+
})