37 lines
760 B
Nix
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 ];
|
|
};
|
|
}
|