bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
41 lines
885 B
Nix
41 lines
885 B
Nix
{ 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 = "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 ];
|
|
mainProgram = "codevis";
|
|
};
|
|
}
|