mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
Merge pull request #205113 from Frostman/mdbook-admonish-1.8.0
mdbook-admonish: 1.7.0 -> 1.8.0
This commit is contained in:
commit
0f487f2b51
1 changed files with 5 additions and 14 deletions
|
@ -1,33 +1,24 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, CoreServices }:
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mdbook-admonish";
|
pname = "mdbook-admonish";
|
||||||
version = "1.7.0";
|
version = "1.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tommilligan";
|
owner = "tommilligan";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-AGOq05NevkRU8qHsJIWd2WfZ4i7w/wexf6c0fUAaoLg=";
|
hash = "sha256-jo5kR1fzSRQq8fvblJaK3IEHfxeN7h0ZdT6vvPBXTXM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoPatches = [
|
cargoHash = "sha256-N0zkdaVWas9jK9IXn9T85s18mNTjoEl8OUF2HA2CuHg=";
|
||||||
# https://github.com/tommilligan/mdbook-admonish/pull/33
|
|
||||||
(fetchpatch {
|
|
||||||
name = "update-mdbook-for-rust-1.64.patch";
|
|
||||||
url = "https://github.com/tommilligan/mdbook-admonish/commit/650123645b18a3f8ed170738c7c1813315095ed9.patch";
|
|
||||||
hash = "sha256-8LMk+Dgz9k0g9fbGGC0X2byyJtfDDgvdGxO06mD6GDI=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
cargoHash = "sha256-5PWfze00/mWmzYqP5M1pAPt+SuknpU9dc0B7RSikuTE=";
|
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A preprocessor for mdbook to add Material Design admonishments";
|
description = "A preprocessor for mdbook to add Material Design admonishments";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ jmgilman ];
|
maintainers = with maintainers; [ jmgilman Frostman ];
|
||||||
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue