nixpkgs/pkgs/tools/misc/codevis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
887 B
Nix
Raw Normal View History

2023-02-10 01:10:35 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, oniguruma
}:
rustPlatform.buildRustPackage rec {
pname = "codevis";
version = "0.8.4";
2023-02-10 01:10:35 +00:00
src = fetchFromGitHub {
owner = "sloganking";
repo = "codevis";
rev = "v${version}";
hash = "sha256-LZ6NsoyEPUvgcVdbG7U2Vzuz/TLLraScvW97PocUNpU=";
2023-02-10 01:10:35 +00:00
};
cargoHash = "sha256-sQKZJVnRs4IcBKmmaQDoJYBQtnuZW4aEICr6Xa8Flnk=";
2023-02-10 01:10:35 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
oniguruma
];
env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};
2023-02-10 01:10:35 +00:00
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";
changelog = "https://github.com/sloganking/codevis/releases/tag/${src.rev}";
2023-02-10 01:10:35 +00:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
2023-11-27 01:17:53 +00:00
mainProgram = "codevis";
2023-02-10 01:10:35 +00:00
};
}