Unverified Commit a3e15079 authored by Felix Bargfeldt's avatar Felix Bargfeldt Committed by GitHub
Browse files

ncdu: fix infinite loop on Zig 0.15.2 (#454965)

parents ab8100a1 13c33dc3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchpatch2,
  ncurses,
  pkg-config,
  zig_0_15,
@@ -20,6 +21,14 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-v9EJThQA7onP1ZIA6rlA8CXM3AwjgGcQXJhKPEhXv34=";
  };

  patches = [
    (fetchpatch2 {
      # Fix infinite loop when reading config file on Zig 0.15.2
      url = "https://code.blicky.net/yorhel/ncdu/commit/f45224457687a55aa885aca8e7300f1fbf0af59b.patch";
      hash = "sha256-80Igx1MOINdeufCsNoisNo3dJ2iUTpZIxyXy/KzQ1Ng=";
    })
  ];

  nativeBuildInputs = [
    zig_0_15.hook
    installShellFiles