Closed aljazerzen closed 1 year ago
oh hey, first time I get nix stuff contributed to my work. Given that I recently started using it myself -> r+
I needed this crate in a dev environment, but because it does not have enough usage it is not on nixpkgs. So I forked and open this PR. For anyone who would want to use it, this is an example flake:
{
description = "My development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
mdbook-toc.url = "github:badboy/mdbook-toc";
};
outputs = { self, nixpkgs, flake-utils, mdbook-toc }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
mdbook
mdbook-admonish
mdbook-toc.defaultPackage.${system}
];
};
});
}
Add support for using this crate from a nix flake.