Commit 820d55bb authored by Frederick Schwalbe's avatar Frederick Schwalbe Committed by zowoq
Browse files

helix: fix UB in diff gutter

Applies https://github.com/helix-editor/helix/pull/7227 as a patch
until the fix is included in the next release.
parent ed75ab35
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
{ fetchzip, lib, rustPlatform, git, installShellFiles, makeWrapper }:
{ fetchpatch, fetchzip, lib, rustPlatform, git, installShellFiles, makeWrapper }:

rustPlatform.buildRustPackage rec {
  pname = "helix";
@@ -14,6 +14,13 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-/LCtfyDAA2JuioBD/CDMv6OOxM0B9A3PpuVP/YY5oF0=";

  patches = [
    (fetchpatch {
      url = "https://patch-diff.githubusercontent.com/raw/helix-editor/helix/pull/7227.patch";
      hash = "sha256-dObMKHNJfc5TODUjZ28TVxuTen02rl8HzcXpFWnhB1k=";
    })
  ];

  nativeBuildInputs = [ git installShellFiles makeWrapper ];

  postInstall = ''