Skip to content

Commit 485531c

Browse files
authoredMar 20, 2025
ninjavis: init at 0.2.1 (#386963)
2 parents 306f59c + b322920 commit 485531c

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
 

‎pkgs/by-name/ni/ninjavis/package.nix

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
lib,
3+
python3Packages,
4+
fetchFromGitHub,
5+
}:
6+
7+
python3Packages.buildPythonApplication rec {
8+
pname = "ninjavis";
9+
version = "0.2.1";
10+
pyproject = true;
11+
12+
src = fetchFromGitHub {
13+
owner = "chagui";
14+
repo = "ninjavis";
15+
tag = "v${version}";
16+
hash = "sha256-4MXU43noG0mKwiXWrLu1tW9YGkU1YjP/UoUKZzVer14=";
17+
};
18+
19+
build-system = [
20+
python3Packages.poetry-core
21+
];
22+
23+
pythonImportsCheck = [
24+
"ninjavis"
25+
];
26+
27+
doInstallCheck = true;
28+
installCheckPhase = ''
29+
runHook preInstallCheck
30+
31+
env --ignore-environment $out/bin/ninjavis --help
32+
33+
runHook postInstallCheck
34+
'';
35+
36+
meta = {
37+
description = "Generate visualization from Ninja build logs";
38+
homepage = "https://github.com/chagui/ninjavis";
39+
changelog = "https://github.com/chagui/ninjavis/releases/tag/v${version}";
40+
license = lib.licenses.mit;
41+
maintainers = with lib.maintainers; [ pbsds ];
42+
mainProgram = "ninjavis";
43+
};
44+
}

0 commit comments

Comments
 (0)
Failed to load comments.