mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
typst-bot: use finalAttrs
This commit is contained in:
parent
436508f4d8
commit
cc2c89bbd7
1 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@
|
|||
}: let
|
||||
rev = "6be5470fcb19e857f76ede9a7f0c96cac63e3abc";
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "typst-bot";
|
||||
version = lib.substring 0 8 rev;
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ in
|
|||
|
||||
# Patch the fonts with src
|
||||
# FIXME: is this the right way to patch
|
||||
substituteInPlace crates/worker/src/sandbox.rs --replace-fail 'read_dir("fonts")' 'read_dir("${src}/fonts")'
|
||||
substituteInPlace crates/worker/src/sandbox.rs --replace-fail 'read_dir("fonts")' 'read_dir("${finalAttrs.src}/fonts")'
|
||||
|
||||
# Patch the command calling the worker by name.
|
||||
substituteInPlace crates/bot/src/worker.rs --replace-fail 'Command::new("./worker")' 'Command::new("worker")'
|
||||
|
|
@ -31,9 +31,9 @@ in
|
|||
cargoBuildFlags = ["--workspace"];
|
||||
|
||||
cargoLock = {
|
||||
lockFile = "${src}/Cargo.lock";
|
||||
lockFile = "${finalAttrs.src}/Cargo.lock";
|
||||
outputHashes = {
|
||||
"poise-0.6.1" = "sha256-AZtF5P7E5xzHJcNdc1k61P2Rr8vIt+oun9vFYSr0nSc=";
|
||||
};
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue