This commit is contained in:
parent
af41c85b1f
commit
ee4e360799
2 changed files with 8 additions and 1 deletions
|
@ -6,3 +6,5 @@ pipeline:
|
|||
commands:
|
||||
- nix flake check
|
||||
- nix build '.#mdbook-toc'
|
||||
- nix build '.#docker'
|
||||
|
||||
|
|
|
@ -12,7 +12,12 @@
|
|||
packages = rec {
|
||||
docker = pkgs.dockerTools.buildLayeredImage {
|
||||
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" ];
|
||||
};
|
||||
mdbook-toc = pkgs.rustPlatform.buildRustPackage rec {
|
||||
|
|
Loading…
Reference in a new issue