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