mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
typst-bot: drop
This commit is contained in:
parent
e7afade200
commit
812a974c75
2 changed files with 0 additions and 40 deletions
|
|
@ -74,7 +74,6 @@ in rec {
|
||||||
maeel = pkgs.callPackage ./maeel.nix {};
|
maeel = pkgs.callPackage ./maeel.nix {};
|
||||||
tokei = pkgs.callPackage ./tokei {}; # alpha tokei with typst, skel, hledger
|
tokei = pkgs.callPackage ./tokei {}; # alpha tokei with typst, skel, hledger
|
||||||
typst-mutilate = pkgs.callPackage ./typst-mutilate.nix {};
|
typst-mutilate = pkgs.callPackage ./typst-mutilate.nix {};
|
||||||
typst-bot = pkgs.callPackage ./typst-bot.nix {};
|
|
||||||
webtoon_downloader = pkgs.callPackage ./webtoon_downloader.nix {};
|
webtoon_downloader = pkgs.callPackage ./webtoon_downloader.nix {};
|
||||||
|
|
||||||
posy-cursor = pkgs.callPackage ./posy-cursor.nix {};
|
posy-cursor = pkgs.callPackage ./posy-cursor.nix {};
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
{
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
lib,
|
|
||||||
}: let
|
|
||||||
rev = "6be5470fcb19e857f76ede9a7f0c96cac63e3abc";
|
|
||||||
in
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "typst-bot";
|
|
||||||
version = lib.substring 0 8 rev;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "mattfbacon";
|
|
||||||
repo = "typst-bot";
|
|
||||||
inherit rev;
|
|
||||||
hash = "sha256-G3tcyFiHeVH77YT2NeIXS/U1GvqGJBw8o26AlBUc4ok=";
|
|
||||||
};
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
# Don't use the upstream way of embedding the git rev
|
|
||||||
echo 'fn main() { println!("cargo:rustc-env=BUILD_SHA=${rev}"); }' > crates/bot/build.rs
|
|
||||||
|
|
||||||
# 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")'
|
|
||||||
|
|
||||||
# Patch the command calling the worker by name.
|
|
||||||
substituteInPlace crates/bot/src/worker.rs --replace-fail 'Command::new("./worker")' 'Command::new("worker")'
|
|
||||||
'';
|
|
||||||
|
|
||||||
cargoBuildFlags = ["--workspace"];
|
|
||||||
|
|
||||||
cargoLock = {
|
|
||||||
lockFile = "${src}/Cargo.lock";
|
|
||||||
outputHashes = {
|
|
||||||
"poise-0.6.1" = "sha256-AZtF5P7E5xzHJcNdc1k61P2Rr8vIt+oun9vFYSr0nSc=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue