1{ lib
2, rustPlatform
3, fetchFromGitHub
4, pkg-config
5, oniguruma
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "codevis";
10 version = "0.8.4";
11
12 src = fetchFromGitHub {
13 owner = "sloganking";
14 repo = "codevis";
15 rev = "v${version}";
16 hash = "sha256-LZ6NsoyEPUvgcVdbG7U2Vzuz/TLLraScvW97PocUNpU=";
17 };
18
19 cargoHash = "sha256-sQKZJVnRs4IcBKmmaQDoJYBQtnuZW4aEICr6Xa8Flnk=";
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24
25 buildInputs = [
26 oniguruma
27 ];
28
29 env = {
30 RUSTONIG_SYSTEM_LIBONIG = true;
31 };
32
33 meta = with lib; {
34 description = "A tool to take all source code in a folder and render them to one image";
35 homepage = "https://github.com/sloganking/codevis";
36 changelog = "https://github.com/sloganking/codevis/releases/tag/${src.rev}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ figsoda ];
39 };
40}