
Diff: https://github.com/Enter-tainer/typstyle/compare/refs/tags/v0.11.23...v0.11.24 Changelog: https://github.com/Enter-tainer/typstyle/blob/refs/tags/v0.11.24/CHANGELOG.md
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, libgit2
|
|
, zlib
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "typstyle";
|
|
version = "0.11.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Enter-tainer";
|
|
repo = "typstyle";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FLvbY+0TozOWZ+JTX//psNjle5GxcyeZXzMOf4/s1v0=";
|
|
};
|
|
|
|
cargoHash = "sha256-VA2WNheQltgCaWwtpbEAn2qtlA0fTeEbCjvgkjF+nvw=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreFoundation
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
# Disabling tests requiring network access
|
|
checkFlags = [
|
|
"--skip=e2e"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Enter-tainer/typstyle/blob/${src.rev}/CHANGELOG.md";
|
|
description = "Format your typst source code";
|
|
homepage = "https://github.com/Enter-tainer/typstyle";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "typstyle";
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
};
|
|
}
|