mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
typst: fix high cpu load when using typst watch
(#385509)
This commit is contained in:
commit
1c7a7eceee
1 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
installShellFiles,
|
||||
pkg-config,
|
||||
openssl,
|
||||
|
@ -24,6 +25,16 @@ rustPlatform.buildRustPackage rec {
|
|||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-ey5pFGLgj17+RZGjpLOeN7Weh29jJyvuRrJ8wsIlC58=";
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# typst 0.13.0 has a regression regarding usage of inotify when running `typst watch`
|
||||
# also affects NixOS: https://github.com/typst/typst/issues/5903#issuecomment-2680985045
|
||||
name = "fix-high-cpu-in-watch-mode.patch";
|
||||
url = "https://patch-diff.githubusercontent.com/raw/typst/typst/pull/5905.patch";
|
||||
hash = "sha256-qq5Dj5kKSjdlHp8FOH+gQtzZGqzBscvG8ufSrL94tsY=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
pkg-config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue