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.
This commit is contained in:
Frederick Schwalbe
2023-08-16 08:36:34 +10:00
committed by zowoq
parent ed75ab352f
commit 820d55bb16
+8 -1
View File
@@ -1,4 +1,4 @@
{ 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 = ''