Skip to content

Commit

Permalink
build: use l3build wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Jan 17, 2025
1 parent d1bb7cb commit 8090459
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: document
run: nix develop --command l3build doc
run: nix develop --command l3build-wrapper doc
- 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:
if: ${{ github.ref == 'refs/heads/main' }}
permissions:
Expand Down
11 changes: 8 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,20 @@
microtype
;
};
l3build-wrapped = pkgs.writeShellScriptBin "l3build-wrapped" ''
# NOTE: the trailing slash in TEXMF is required
TEXMF="${texlive}/" ${texlive}/bin/l3build "$@"
'';
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
texlive
l3build-wrapped
];
shellHook = ''
export TEXMF="${texlive}/"
'';
# shellHook = ''
# export TEXMF="${texlive}/"
# '';
};
}
);
Expand Down

0 comments on commit 8090459

Please sign in to comment.