nix: updated typstLib

This commit is contained in:
Primrose 2024-10-21 19:53:11 +02:00
parent fc85fcb9b1
commit 758c586fb5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 13 additions and 6 deletions

View file

@ -79,11 +79,18 @@
{ typstLib, ... }:
typstLib.typstDerivation.overrideAttrs {
src = ./y-combinator-wallpaper;
dontFixup = true; # no need to patch the pdf
buildPhase = ''
runHook preBuild
typst compile main.typ "$out"/main.svg
typst compile main.typ main.svg
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
cp main.svg "$out/"
runHook postInstall
'';
dontFixup = true;
}
);