diff options
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/mdbook-emojicodes/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdbook-emojicodes/default.nix b/pkgs/tools/text/mdbook-emojicodes/default.nix new file mode 100644 index 000000000000..01ce8fb3e9db --- /dev/null +++ b/pkgs/tools/text/mdbook-emojicodes/default.nix @@ -0,0 +1,31 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "mdbook-emojicodes"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "blyxyas"; + repo = "mdbook-emojicodes"; + rev = "${version}.1"; + hash = "sha256-SWT01R/+FuzkkOUd/2wpRo0HIaPEtzDelTSh7ewo9gQ="; + }; + + cargoHash = "sha256-z9UKBBCr8R1I9k48JsEBnVokQDfaj9lt+qfIUvJ/5lE="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreFoundation + ]; + + meta = with lib; { + description = "MDBook preprocessor for converting emojicodes (e.g. `: cat :`) into emojis 🐱"; + homepage = "https://github.com/blyxyas/mdbook-emojicodes"; + license = licenses.mit; + maintainers = with maintainers; [ blaggacao ]; + }; +} |