diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/codevis/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/codevis/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/codevis/default.nix b/nixpkgs/pkgs/tools/misc/codevis/default.nix new file mode 100644 index 000000000000..464702432aa6 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/codevis/default.nix @@ -0,0 +1,40 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, oniguruma +}: + +rustPlatform.buildRustPackage rec { + pname = "codevis"; + version = "0.8.4"; + + src = fetchFromGitHub { + owner = "sloganking"; + repo = "codevis"; + rev = "v${version}"; + hash = "sha256-LZ6NsoyEPUvgcVdbG7U2Vzuz/TLLraScvW97PocUNpU="; + }; + + cargoHash = "sha256-sQKZJVnRs4IcBKmmaQDoJYBQtnuZW4aEICr6Xa8Flnk="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + oniguruma + ]; + + env = { + RUSTONIG_SYSTEM_LIBONIG = true; + }; + + meta = with lib; { + description = "A tool to take all source code in a folder and render them to one image"; + homepage = "https://github.com/sloganking/codevis"; + changelog = "https://github.com/sloganking/codevis/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} |