mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
26 lines
755 B
Nix
26 lines
755 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-admonish";
|
|
version = "1.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tommilligan";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-31lYwvlpjeg0ZysusMY/PClEPB1tgroE9EvL4yX+2s0=";
|
|
};
|
|
|
|
cargoHash = "sha256-Cqxgwf121waOsXUGqQJ+GgUqVWK+5kYUl8SL8MtuExs=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
meta = with lib; {
|
|
description = "A preprocessor for mdbook to add Material Design admonishments";
|
|
mainProgram = "mdbook-admonish";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jmgilman Frostman ];
|
|
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
|
};
|
|
}
|