Merge pull request #319146 from BirdeeHub/master

dep-tree: init at 0.20.3
This commit is contained in:
Sandro 2024-07-07 11:08:34 +02:00 committed by GitHub
commit 83046d8a63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 71 additions and 0 deletions

View File

@ -2604,6 +2604,11 @@
githubId = 30630233;
name = "Timo Triebensky";
};
birdee = {
name = "birdee";
github = "BirdeeHub";
githubId = 85372418;
};
birkb = {
email = "birk@batchworks.de";
github = "birkb";

View File

@ -0,0 +1,66 @@
{
lib,
fetchFromGitHub,
buildGoModule,
linkFarm,
}:
let
testDeps = {
react-stl-viewer = fetchFromGitHub {
owner = "gabotechs";
repo = "react-stl-viewer";
rev = "2.2.4";
sha256 = "sha256-0u9q0UgOn43PE1Y6BUhl1l6RnVjpPraFqZWB+HhQ0s8=";
};
react-gcode-viewer = fetchFromGitHub {
owner = "gabotechs";
repo = "react-gcode-viewer";
rev = "2.2.4";
sha256 = "sha256-FHBICLdy0k4j3pPKStg+nkIktMpKS1ADa4m1vYHJ+AQ=";
};
graphql-js = fetchFromGitHub {
owner = "graphql";
repo = "graphql-js";
rev = "v17.0.0-alpha.2";
sha256 = "sha256-y55SNiMivL7bRsjLEIpsKKyaluI4sXhREpiB6A5jfDU=";
};
warp = fetchFromGitHub {
owner = "seanmonstar";
repo = "warp";
rev = "v0.3.3";
sha256 = "sha256-76ib8KMjTS2iUOwkQYCsoeL3GwBaA/MRQU2eGjJEpOo=";
};
};
pname = "dep-tree";
version = "0.20.3";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "gabotechs";
repo = pname;
rev = "v${version}";
hash = "sha256-w0t6SF0Kqr+XAKPNJpDJGDTm2Tc6J9OzbXtRUNkqp2k=";
};
vendorHash = "sha256-ZDADo1takCemPGYySLwPAODUF+mEJXsaxZn4WWmaUR8=";
preCheck = ''
substituteInPlace internal/tui/tui_test.go \
--replace-fail /tmp/dep-tree-tests ${linkFarm "dep-tree_testDeps-farm" testDeps}
'';
meta = {
description = "Tool for visualizing interconnectedness of codebases in multiple languages";
longDescription = ''
dep-tree is a tool for interactively visualizing the complexity of a code base.
It helps analyze the interconnectedness of the codebase and create goals to improve maintainability.
'';
homepage = "https://github.com/gabotechs/dep-tree";
changelog = "https://github.com/gabotechs/dep-tree/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ birdee ];
mainProgram = "dep-tree";
};
}