feat: can now create the pdf's directly using `nix run .#handovers`

This commit is contained in:
silver 2024-05-10 03:14:03 +01:00
parent 527465ab07
commit e42a2b221a
Signed by: silver
GPG key ID: 54E2C71918E93B74
5 changed files with 55 additions and 13 deletions

View file

@ -14,7 +14,10 @@
config = {
allowUnfree = true;
permittedInsecurePackages = [
# for obsidian
"electron-25.9.0"
# for wkhtmltopdf
"qtwebkit-5.212.0-alpha4"
];
};
};
@ -35,11 +38,12 @@
program = "${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom";
};
packages.handovers = pkgs.writeShellScriptBin "format_handovers" ''
cd Committee
${bfom.defaultPackage.x86_64-linux}/bin/cargo-bfom
'';
packages = {
handovers = pkgs.writeShellScriptBin "format_handovers" ''
export PATH=${pkgs.lib.makeBinPath [ pkgs.wkhtmltopdf bfom.defaultPackage.x86_64-linux ]}:$PATH
${./_scripts/format_handovers.sh}
'';
};
});
}