Unverified Commit 984999b3 authored by Bruno Bigras's avatar Bruno Bigras Committed by GitHub
Browse files

lazyjj: fix build (#346801)

parent 81b60bee
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  rustPlatform,
  testers,
  lazyjj,
  fetchpatch,
}:
rustPlatform.buildRustPackage rec {
  pname = "lazyjj";
@@ -25,6 +26,15 @@ rustPlatform.buildRustPackage rec {
      --prefix PATH : ${lib.makeBinPath [ jujutsu ]}
  '';

  patches = [
    # https://github.com/Cretezy/lazyjj/pull/61
    (fetchpatch {
      name = "adapt_test_traces_to_jj_0.22.0.patch";
      url = "https://github.com/Cretezy/lazyjj/commit/d5e949fb0e62bc93969c27011963582e12bbe3f6.patch";
      hash = "sha256-u+IMLW4iZxMmpa+dwggMfQ4E7ygc0T4I6lvzBcPJT3s=";
    })
  ];

  nativeBuildInputs = [ makeWrapper ];

  nativeCheckInputs = [ jujutsu ];