mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +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.
24 lines
629 B
Nix
24 lines
629 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-pagetoc";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "slowsage";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-g7UaQZzIdpv4hZgEtoJ6fyPgA9yQPw3LiATwngjHnWE=";
|
|
};
|
|
|
|
cargoHash = "sha256-qSsZaXneGW6zspgy8wHFZvRyTexy6VdySleZv0ieBsI=";
|
|
|
|
meta = with lib; {
|
|
description = "Table of contents for mdbook (in sidebar)";
|
|
mainProgram = "mdbook-pagetoc";
|
|
homepage = "https://github.com/slowsage/mdbook-pagetoc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ blaggacao ];
|
|
};
|
|
}
|