depot/third_party/nixpkgs/pkgs/by-name/md/mdbook-kroki-preprocessor/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

47 lines
1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "mdbook-kroki-preprocessor";
version = "0.2.0";
src = fetchFromGitHub {
owner = "joelcourtney";
repo = "mdbook-kroki-preprocessor";
rev = "v${version}";
hash = "sha256-3BxIhJK0YWZBEbbNwMKixo1icEn+QKJwoskgIEaZcGQ=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-vOP/XvoHwJd34f+NGGCFJkEbefbbJjFcGTOFaCn9dj8=";
nativeBuildInputs = [
pkg-config
];
buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Render Kroki diagrams from files or code blocks in mdbook";
mainProgram = "mdbook-kroki-preprocessor";
homepage = "https://github.com/joelcourtney/mdbook-kroki-preprocessor";
license = licenses.gpl3Only;
maintainers = with maintainers; [
matthiasbeyer
];
};
}