diff options
author | Florian Klink <flokli@flokli.de> | 2019-12-15 02:18:50 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-12-15 02:18:50 +0100 |
commit | d41dca2f5f6a49868a9ba449a090881ee82f909e (patch) | |
tree | ce00a306c4c1909740da7da20e5c544adb5828d9 /pkgs/tools/misc/exa | |
parent | a081531a80970d6d9c68e10628043e3a919403af (diff) | |
download | nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.tar nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.tar.gz nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.tar.bz2 nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.tar.lz nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.tar.xz nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.tar.zst nixpkgs-d41dca2f5f6a49868a9ba449a090881ee82f909e.zip |
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.
Diffstat (limited to 'pkgs/tools/misc/exa')
-rw-r--r-- | pkgs/tools/misc/exa/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix index e05963b6902..0edd8a1b318 100644 --- a/pkgs/tools/misc/exa/default.nix +++ b/pkgs/tools/misc/exa/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform, cmake, perl, pkgconfig, zlib +{ stdenv, fetchFromGitHub, fetchpatch, rustPlatform, cmake, perl, pkgconfig, zlib , darwin, libiconv, installShellFiles }: @@ -17,6 +17,15 @@ buildRustPackage rec { sha256 = "14qlm9zb9v22hxbbi833xaq2b7qsxnmh15s317200vz5f1305hhw"; }; + patches = [ + (fetchpatch { + # https://github.com/ogham/exa/pull/584 + name = "fix-panic-on-broken-symlink-in-git-repository.patch"; + url = "https://github.com/ogham/exa/pull/584/commits/a7a8e99cf3a15992afb2383435da0231917ffb54.patch"; + sha256 = "0n5q483sz300jkp0sbb350hdinmkw7s6bmigdyr6ypz3fvygd9hx"; + }) + ]; + nativeBuildInputs = [ cmake pkgconfig perl installShellFiles ]; buildInputs = [ zlib ] ++ stdenv.lib.optionals stdenv.isDarwin [ |