Unverified Commit 27ce0d6e authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

typstyle: 0.11.16 -> 0.11.21

parent 0f4f8ccc
Loading
Loading
Loading
Loading
+3 −18
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, fetchpatch
, pkg-config
, libgit2
, zlib
@@ -11,30 +10,16 @@

rustPlatform.buildRustPackage rec {
  pname = "typstyle";
  version = "0.11.16";
  version = "0.11.21";

  src = fetchFromGitHub {
    owner = "Enter-tainer";
    repo = "typstyle";
    rev = "v${version}";
    hash = "sha256-ZmGrdAHbU4PQgd9haoVEZ8Wn8Scujm9bJAtvO2+aPoQ=";
    hash = "sha256-dmHacYUL0Pig3SxSlRU4ddKzZmBJKDq/ulV3GDW7O1k=";
  };

  patches = [
    (fetchpatch {
      # Trim whitespace patch
      name = "whitespace-trim.patch";
      url = "https://github.com/Enter-tainer/typstyle/commit/127b7362f5938e091e2e5a33976ad3f63b6e4ee3.patch";
      hash = "sha256-Xzo51bgpEUKP7WDQ7BFNAZsyofPcPDIJMWOf4S+GGvI=";
    })
  ];

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "typst-syntax-0.11.0" = "sha256-BezpRq5O89gLbpRtte539vlJ4G5yJ6VPJ8AaC7rQNc0=";
    };
  };
  cargoHash = "sha256-D1IabmWlPwWnSdltDN+DViVpm4ue+ZFIQZrhL+YNeUU=";

  nativeBuildInputs = [
    pkg-config