2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-emojicodes";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.3.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blyxyas";
|
|
|
|
repo = "mdbook-emojicodes";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-dlvfY2AMBvTl0j9YaT+u4CeWQGGihFD8AZaAK4/hUWU=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-SkvAtV613+ARk79dB2zRKoLjPgdzoEKQa3JrRw9qBkA=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreFoundation
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "MDBook preprocessor for converting emojicodes (e.g. `: cat :`) into emojis 🐱";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mdbook-emojicodes";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/blyxyas/mdbook-emojicodes";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/blyxyas/mdbook-emojicodes/releases/tag/${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.mit;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|