mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
48043e4cb1
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
23 lines
620 B
Nix
23 lines
620 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-open-on-gh";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "badboy";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-omQTyJ7XKRBjX8jyWLONajAYnwr93nElrwDLdvs2MxM=";
|
|
};
|
|
|
|
cargoHash = "sha256-57KcqALWbiGtp6HWSN42gZ0St38oHu3inZ0TT77j7go=";
|
|
|
|
meta = with lib; {
|
|
description = "mdbook preprocessor to add a open-on-github link on every page";
|
|
homepage = "https://github.com/badboy/mdbook-open-on-gh";
|
|
license = [ licenses.mpl20 ];
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
}
|