This commit is contained in:
parent
af41c85b1f
commit
ee4e360799
2 changed files with 8 additions and 1 deletions
|
@ -6,3 +6,5 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- nix flake check
|
- nix flake check
|
||||||
- nix build '.#mdbook-toc'
|
- nix build '.#mdbook-toc'
|
||||||
|
- nix build '.#docker'
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,12 @@
|
||||||
packages = rec {
|
packages = rec {
|
||||||
docker = pkgs.dockerTools.buildLayeredImage {
|
docker = pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "mdbook-plus";
|
name = "mdbook-plus";
|
||||||
contents = mdbook-toc;
|
contents = [
|
||||||
|
(pkgs.buildEnv {
|
||||||
|
name = "mdbook-env";
|
||||||
|
paths = with pkgs; [ busybox mdbook mdbook-toc ];
|
||||||
|
})
|
||||||
|
];
|
||||||
config.Cmd = [ "${pkgs.mdbook}/bin/mdbook" ];
|
config.Cmd = [ "${pkgs.mdbook}/bin/mdbook" ];
|
||||||
};
|
};
|
||||||
mdbook-toc = pkgs.rustPlatform.buildRustPackage rec {
|
mdbook-toc = pkgs.rustPlatform.buildRustPackage rec {
|
||||||
|
|
Loading…
Reference in a new issue