feat: got the presenterm working with the older bfom

This commit is contained in:
silver 2025-09-08 01:29:15 +01:00
parent f9d13c0e84
commit 0ab406a3ba
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 30 additions and 5 deletions

View file

@ -30,7 +30,7 @@
inherit system;
};
packages = with pkgs; [
dependencies = with pkgs; [
# For teh presentations themselves
presenterm
@ -57,9 +57,35 @@
in rec {
# `nix develop`
devShell = pkgs.mkShell {
packages = packages;
packages = dependencies;
PRESENTERM_CONFIG_FILE = "config.yaml";
};
packages.default = pkgs.stdenv.mkDerivation {
name = "slides.skynet.ie";
src = self;
nativeBuildInputs = dependencies;
buildInputs = dependencies;
buildPhase = ''
# first pass through to get teh old files
${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom
# then look into ./slides
export PRESENTERM_CONFIG_FILE=config.yaml
# recursively find each one then --export-html to ./build/slides/
shopt -s globstar
for source in slides/**/*.md; do
echo $source
output="$(dirname "$source")/$(basename "$source" .md).html"
echo $output
presenterm --export-html "$source"
mkdir -p "build/$(dirname "$source")"
cp "$output" "build/$output"
done
shopt -u globstar
'';
installPhase = "mkdir -p $out; cp -R build/* $out";
};
});
# @ inputs: let
# pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;

View file

@ -27,13 +27,12 @@ Skynet 3.0
<!-- column_layout: [2, 1] -->
<!-- column: 1 -->
![Delving into Ruins](01_intro/0_intro_img1.png)
<!-- column: 0 -->
<!-- incremental_lists: true -->
* Gave us a chance to do a full rebuild.
* Servers were delved Indiana Jones style.
<!-- column: 1 -->
![Delving into Ruins](01_intro/0_intro_img1.png)
<!-- column: 0 -->
* Backups were made.
* Returned Summer 2023.
* Powered by NixOS.