build: use l3build wrapper

This commit is contained in:
Johan Larsson 2025-01-17 13:40:13 +01:00
parent d1bb7cb144
commit 80904599e6
2 changed files with 10 additions and 5 deletions

View File

@ -15,9 +15,9 @@ jobs:
with: with:
github_access_token: ${{ secrets.GITHUB_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: document - name: document
run: nix develop --command l3build doc run: nix develop --command l3build-wrapper doc
- name: build - name: build
run: nix develop --command l3build ctan -q -H --show-log-on-error run: nix develop --command l3build-wrapper ctan -q -H --show-log-on-error
release: release:
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
permissions: permissions:

View File

@ -33,15 +33,20 @@
microtype microtype
; ;
}; };
l3build-wrapped = pkgs.writeShellScriptBin "l3build-wrapped" ''
# NOTE: the trailing slash in TEXMF is required
TEXMF="${texlive}/" ${texlive}/bin/l3build "$@"
'';
in in
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = [ buildInputs = [
texlive texlive
l3build-wrapped
]; ];
shellHook = '' # shellHook = ''
export TEXMF="${texlive}/" # export TEXMF="${texlive}/"
''; # '';
}; };
} }
); );