Compare commits

...

No commits in common. "1.0.0" and "main" have entirely different histories.
1.0.0 ... main

3 changed files with 31 additions and 28 deletions

View file

@ -1,17 +0,0 @@
pipeline:
nix:
image: nixos/nix
environment:
- NIX_CONFIG=experimental-features = nix-command flakes
commands:
- nix flake check
- nix build '.#mdbook-toc'
publish:
image: git.0x76.dev/v/push-nix-container:0.3.3
settings:
username: v
password:
from_secret: registry_password
package: container # nix os package to build
repo: git.0x76.dev
image: v/mdbook-container

30
flake.lock generated
View file

@ -1,12 +1,15 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
@ -17,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1669411043,
"narHash": "sha256-LfPd3+EY+jaIHTRIEOUtHXuanxm59YKgUacmSzaqMLc=",
"lastModified": 1695360818,
"narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5dc7114b7b256d217fe7752f1614be2514e61bb8",
"rev": "e35dcc04a3853da485a396bdd332217d0ac9054f",
"type": "github"
},
"original": {
@ -36,6 +39,21 @@
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",

View file

@ -1,5 +1,5 @@
{
description = "an container for mdbook with the toc plugin";
description = "an container for mdbook with various plugins";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
@ -11,28 +11,30 @@
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
default = container;
container = pkgs.dockerTools.buildLayeredImage {
name = "mdbook-container";
tag = "0.4.0";
contents = [
(pkgs.buildEnv {
name = "mdbook-env";
paths = with pkgs; [ busybox mdbook mdbook-toc ];
paths = with pkgs; [ busybox mdbook mdbook-toc mdbook-katex ];
})
];
config.Cmd = [ "${pkgs.mdbook}/bin/mdbook" ];
};
mdbook-toc = pkgs.rustPlatform.buildRustPackage rec {
pname = "mdbook-toc";
version = "0.10.0";
version = "0.14.1";
src = pkgs.fetchFromGitHub {
owner = "badboy";
repo = pname;
rev = version;
sha256 = "sha256-/MPxuzqgWKyLP1fn/WoA2cKlV0TiVidt+YpNqY96sxE=";
sha256 = "sha256-F0dIqtDEOVUXlWhmXKPOaJTEuA3Tl3h0vaEu7VsBo7s=";
};
cargoSha256 = "sha256-JFqkeea6o5Wzpe+2Fp+UYjBOh/e3vX1pZzCfxxfAYmU=";
cargoSha256 = "sha256-gbBX6Hj+271BA9FWmkZdyR0tMP2Lny7UgW0o+kZe9bU=";
};
};
});