nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6 versionCheckHook, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "typstyle"; 11 version = "0.14.4"; 12 13 src = fetchFromGitHub { 14 owner = "typstyle-rs"; 15 repo = "typstyle"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-zDvO++UEA94Kdfu4/qCqfF6IgdCtpIjaVZjZdlkQgNw="; 18 }; 19 20 cargoHash = "sha256-9Z2l982ELoMOAzsFMhQzaXcb1vX8Y6aek0j/HbTzp38="; 21 22 # Disabling tests requiring network access 23 checkFlags = [ 24 "--skip=e2e" 25 ]; 26 27 nativeInstallCheckInputs = [ 28 versionCheckHook 29 ]; 30 doInstallCheck = true; 31 32 passthru = { 33 updateScript = nix-update-script { }; 34 }; 35 36 meta = { 37 changelog = "https://github.com/typstyle-rs/typstyle/blob/${finalAttrs.src.tag}/CHANGELOG.md"; 38 description = "Format your typst source code"; 39 homepage = "https://github.com/typstyle-rs/typstyle"; 40 license = lib.licenses.asl20; 41 mainProgram = "typstyle"; 42 maintainers = with lib.maintainers; [ 43 prince213 44 ]; 45 }; 46})