nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

exa: apply patch to not panic on broken symlinks

Currently, exa fails when being executed in a git repository with
symlinks pointing to a non-existing location.

This can happen quite often with garbage-collected result links, or in
bazel repositories.

A fix was PR'ed in September at https://github.com/ogham/exa/pull/584,
but upstream seems to be not responding.

Let's apply this patch until there's a release containing the fixes.

+10 -1
+10 -1
pkgs/tools/misc/exa/default.nix
··· 1 - { stdenv, fetchFromGitHub, rustPlatform, cmake, perl, pkgconfig, zlib 1 + { stdenv, fetchFromGitHub, fetchpatch, rustPlatform, cmake, perl, pkgconfig, zlib 2 2 , darwin, libiconv, installShellFiles 3 3 }: 4 4 ··· 16 16 rev = "v${version}"; 17 17 sha256 = "14qlm9zb9v22hxbbi833xaq2b7qsxnmh15s317200vz5f1305hhw"; 18 18 }; 19 + 20 + patches = [ 21 + (fetchpatch { 22 + # https://github.com/ogham/exa/pull/584 23 + name = "fix-panic-on-broken-symlink-in-git-repository.patch"; 24 + url = "https://github.com/ogham/exa/pull/584/commits/a7a8e99cf3a15992afb2383435da0231917ffb54.patch"; 25 + sha256 = "0n5q483sz300jkp0sbb350hdinmkw7s6bmigdyr6ypz3fvygd9hx"; 26 + }) 27 + ]; 19 28 20 29 nativeBuildInputs = [ cmake pkgconfig perl installShellFiles ]; 21 30 buildInputs = [ zlib ]