mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
Fix some issues in Nix flake
This commit is contained in:
parent
ebfdb1dafa
commit
19345f7657
@ -38,7 +38,7 @@
|
|||||||
inherit ((importTOML ./Cargo.toml).workspace.package) version;
|
inherit ((importTOML ./Cargo.toml).workspace.package) version;
|
||||||
|
|
||||||
src = sourceByRegex ./. [
|
src = sourceByRegex ./. [
|
||||||
"(assets|cli|docs|library|macros|src|tests)(/.*)?"
|
"(assets|crates|tests)(/.*)?"
|
||||||
''Cargo\.(toml|lock)''
|
''Cargo\.(toml|lock)''
|
||||||
''build\.rs''
|
''build\.rs''
|
||||||
];
|
];
|
||||||
@ -57,10 +57,10 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage cli/artifacts/*.1
|
installManPage crates/typst-cli/artifacts/*.1
|
||||||
installShellCompletion \
|
installShellCompletion \
|
||||||
cli/artifacts/typst.{bash,fish} \
|
crates/typst-cli/artifacts/typst.{bash,fish} \
|
||||||
--zsh cli/artifacts/_typst
|
--zsh crates/typst-cli/artifacts/_typst
|
||||||
'';
|
'';
|
||||||
|
|
||||||
GEN_ARTIFACTS = "artifacts";
|
GEN_ARTIFACTS = "artifacts";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user