feat: got the presenterm working with the older bfom
This commit is contained in:
parent
f9d13c0e84
commit
0ab406a3ba
2 changed files with 30 additions and 5 deletions
30
flake.nix
30
flake.nix
|
@ -30,7 +30,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [
|
dependencies = with pkgs; [
|
||||||
# For teh presentations themselves
|
# For teh presentations themselves
|
||||||
presenterm
|
presenterm
|
||||||
|
|
||||||
|
@ -57,9 +57,35 @@
|
||||||
in rec {
|
in rec {
|
||||||
# `nix develop`
|
# `nix develop`
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
packages = packages;
|
packages = dependencies;
|
||||||
PRESENTERM_CONFIG_FILE = "config.yaml";
|
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
|
# @ inputs: let
|
||||||
# pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
|
# pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
|
||||||
|
|
|
@ -27,13 +27,12 @@ Skynet 3.0
|
||||||
|
|
||||||
|
|
||||||
<!-- column_layout: [2, 1] -->
|
<!-- column_layout: [2, 1] -->
|
||||||
|
<!-- column: 1 -->
|
||||||
|

|
||||||
<!-- column: 0 -->
|
<!-- column: 0 -->
|
||||||
<!-- incremental_lists: true -->
|
<!-- incremental_lists: true -->
|
||||||
* Gave us a chance to do a full rebuild.
|
* Gave us a chance to do a full rebuild.
|
||||||
* Servers were delved Indiana Jones style.
|
* Servers were delved Indiana Jones style.
|
||||||
<!-- column: 1 -->
|
|
||||||

|
|
||||||
<!-- column: 0 -->
|
|
||||||
* Backups were made.
|
* Backups were made.
|
||||||
* Returned Summer 2023.
|
* Returned Summer 2023.
|
||||||
* Powered by NixOS.
|
* Powered by NixOS.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue