mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
29 lines
804 B
Nix
29 lines
804 B
Nix
{
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: let
|
|
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
|
|
cargoLock = finalAttrs.src + "/Cargo.lock";
|
|
in {
|
|
pname = "typst-mutilate";
|
|
version = cargoToml.package.version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frozolotl";
|
|
repo = "typst-mutilate";
|
|
rev = "9bf5ed1f8a2f91055a91077f0a8545ff1f229933";
|
|
hash = "sha256-r4fkFv1np8xhff3m8yev1rU1vfKRz8zQMIKIc+fOjew=";
|
|
};
|
|
|
|
cargoLock.lockFile = cargoLock;
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "raw-block-fix";
|
|
url = "https://github.com/frozolotl/typst-mutilate/pull/2/commits/223bc31abb2d5fef4e743a1582bb126a2ef47a45.patch";
|
|
hash = "sha256-+6DMQo4cjVASgkX4gcYrEkwQ/uxttV/61fDnXBqbNcg=";
|
|
})
|
|
];
|
|
})
|