depot/third_party/nixpkgs/pkgs/tools/misc/codevis/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

37 lines
760 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, oniguruma
}:
rustPlatform.buildRustPackage rec {
pname = "codevis";
version = "0.5.1";
src = fetchFromGitHub {
owner = "sloganking";
repo = "codevis";
rev = "v${version}";
hash = "sha256-dkzBLDZK0BJ069mlkXMGtuDodZr9sxFmpEXjp5Nf0Qk=";
};
cargoHash = "sha256-/2sBd2RAOjGTgXMocuKea1qhkXj81vM8PlRhYsJKx5g=";
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 ];
};
}