appendix: 23 Code-Ausschnitte aus dem Houston-Repository
Pin nixpkgs to the revision used by itc.componentware: the channel version ships a latexminted that crashes on Python 3.14, which made every listing fail and sent latexmk into an endless error prompt. Also force nonstopmode/halt-on-error so a broken listing can never loop again.
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
with import <nixpkgs> {}; let
|
||||
let
|
||||
# Pinned to the same nixpkgs revision as itc.componentware, where the minted
|
||||
# toolchain is known to work. The channel version ships a latexminted that
|
||||
# crashes on Python 3.14, which makes every code listing fail.
|
||||
pkgs = import (builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/cc3f2ee0b3909e42334f34720ccac109a7e67068.tar.gz";
|
||||
sha256 = "sha256:0lz0yl9fmh5wfqp7j7rmcs8qjqr3bf1h5cy4rfdasbnbzh4k9j6x";
|
||||
}) {};
|
||||
|
||||
fonts = [
|
||||
times-newer-roman
|
||||
pkgs.times-newer-roman
|
||||
];
|
||||
# This is not reccocgnised by latexmk, so we will have to put our
|
||||
# font files in ~/.local/share/fonts
|
||||
# fontsConf = makeFontsConf {
|
||||
# fontDirectories = fonts;
|
||||
# };
|
||||
# export FONTCONFIG_FILE="${fontsConf}"
|
||||
in
|
||||
mkShell {
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = fonts;
|
||||
packages = [
|
||||
packages = with pkgs; [
|
||||
latexrun
|
||||
mermaid-cli
|
||||
times-newer-roman
|
||||
@@ -42,6 +44,6 @@ in
|
||||
# install fonts
|
||||
DEST=~/.local/share/fonts/TimesNewerRoman
|
||||
mkdir -p $DEST
|
||||
cp -r ${toString times-newer-roman}/share/fonts/opentype "$DEST"
|
||||
cp -rn ${toString pkgs.times-newer-roman}/share/fonts/opentype "$DEST" 2>/dev/null || true
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user