vacuum-go: 0.16.1 -> 0.16.2 (#380231)
[NixPkgs.git] / pkgs / by-name / ty / typstyle / package.nix
blob4ab5c985f87f76f8f74190d91328f10d756ce34b
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   nix-update-script,
6   versionCheckHook,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "typstyle";
11   version = "0.12.14";
13   src = fetchFromGitHub {
14     owner = "Enter-tainer";
15     repo = "typstyle";
16     tag = "v${version}";
17     hash = "sha256-TOu/1NiIofY87ttdBPDM2tVRg57FL8v8FCwkf0NFdBQ=";
18   };
20   useFetchCargoVendor = true;
21   cargoHash = "sha256-2BX1Ol7eCWs7b5cIwQWWBwFksQ4HO7NmnoP9D384TUQ=";
23   # Disabling tests requiring network access
24   checkFlags = [
25     "--skip=e2e"
26   ];
28   nativeInstallCheckInputs = [
29     versionCheckHook
30   ];
31   versionCheckProgramArg = [ "--version" ];
32   doInstallCheck = true;
34   passthru = {
35     updateScript = nix-update-script { };
36   };
38   meta = {
39     changelog = "https://github.com/Enter-tainer/typstyle/blob/v${version}/CHANGELOG.md";
40     description = "Format your typst source code";
41     homepage = "https://github.com/Enter-tainer/typstyle";
42     license = lib.licenses.asl20;
43     mainProgram = "typstyle";
44     maintainers = with lib.maintainers; [ drupol ];
45   };