depot/third_party/nixpkgs/pkgs/tools/misc/codevis/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

37 lines
760 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, oniguruma
}:
rustPlatform.buildRustPackage rec {
pname = "codevis";
version = "0.8.3";
src = fetchFromGitHub {
owner = "sloganking";
repo = "codevis";
rev = "v${version}";
hash = "sha256-J2cF0ELH9E05ZXRIZQU5qhU1taIorORtqIzq61hTHxQ=";
};
cargoHash = "sha256-9QRd/UWlaRTtTOjtBa2TzrxCNf/sBbKT3GUnr1Spw+g=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
oniguruma
];
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";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}