typst: 0.10.0 -> 0.11.0-rc1

This commit is contained in:
Pol Dellaiera 2024-03-10 13:46:07 +01:00
parent 3ba9038ccb
commit 7b6f7dadcd
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA
2 changed files with 797 additions and 814 deletions

File diff suppressed because it is too large Load diff

View file

@ -2,38 +2,48 @@
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, installShellFiles , installShellFiles
, pkg-config
, openssl
, xz
, stdenv , stdenv
, darwin , darwin
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "typst"; pname = "typst";
version = "0.10.0"; version = "0.11.0-rc1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "typst"; owner = "typst";
repo = "typst"; repo = "typst";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-qiskc0G/ZdLRZjTicoKIOztRFem59TM4ki23Rl55y9s="; hash = "sha256-jOq+aoBSRUTXldg8iWGSJ1z0y+3KbhZfVAgjZo9IsGo=";
}; };
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"iai-0.1.1" = "sha256-EdNzCPht5chg7uF9O8CtPWR/bzSYyfYIXNdLltqdlR0="; "typst-dev-assets-0.10.0" = "sha256-EBOZbblbavtsr2LEnoIF0UFmpSsm8Sq7ibxxWcAMIHY=";
}; };
}; };
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles
pkg-config
]; ];
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = [
openssl
xz
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.CoreServices darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.Security
]; ];
env = { env = {
GEN_ARTIFACTS = "artifacts"; GEN_ARTIFACTS = "artifacts";
OPENSSL_NO_VENDOR = true;
}; };
postInstall = '' postInstall = ''