mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
mdbook-kroki-preprocessor: init at v0.1.2
This commit is contained in:
parent
f51e8162de
commit
7f991d1aa0
40
pkgs/tools/text/mdbook-kroki-preprocessor/default.nix
Normal file
40
pkgs/tools/text/mdbook-kroki-preprocessor/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-kroki-preprocessor";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joelcourtney";
|
||||
repo = "mdbook-kroki-preprocessor";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-1TJuUzfyMycWlOQH67LR63/ll2GDZz25I3JfScy/Jnw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-IKwDWymAQ1OMQN8Op+DcvqPikoLdOz6lltbhCgOAles=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.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";
|
||||
homepage = "https://github.com/joelcourtney/mdbook-kroki-preprocessor";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ blaggacao ];
|
||||
};
|
||||
}
|
@ -9043,6 +9043,8 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-kroki-preprocessor = callPackage ../tools/text/mdbook-kroki-preprocessor { };
|
||||
|
||||
mdbook-linkcheck = callPackage ../tools/text/mdbook-linkcheck {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user