diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-07-17 22:14:02 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-07-17 22:18:15 +0200 |
commit | 983daf98f7bad12cadeb4253747329669fe13ea7 (patch) | |
tree | d27dec2e2f65d269a52fbde30919a3148acb6588 /pkgs/tools | |
parent | 0ea3c6b06f7344f2f0359280d723b5206a05e2d3 (diff) |
mdcat: fix wezterm detection through TERM
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/mdcat/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdcat/default.nix b/pkgs/tools/text/mdcat/default.nix index beedabe34ae85..93f65f45d3753 100644 --- a/pkgs/tools/text/mdcat/default.nix +++ b/pkgs/tools/text/mdcat/default.nix @@ -8,6 +8,7 @@ , Security , ansi2html , installShellFiles +, fetchpatch }: rustPlatform.buildRustPackage rec { @@ -21,6 +22,14 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-aJ7rL+EKa5zWmCmekVuRmdeOwTmVo0IQ+GJ8Ga4iTI0="; }; + patches = [ + # detect wezterm through TERM again which was removed in 0.23.1 + (fetchpatch { + url = "https://github.com/lunaryorn/mdcat/commit/a897b223904748a47c277f7c9a07d59e7d5c916b.patch"; + sha256 = "sha256-tSeNyrlqoGvlfQ3xMRkvqZ7HajMvPCIk7kyt/sVjmTo="; + }) + ]; + nativeBuildInputs = [ pkg-config asciidoctor installShellFiles ]; buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; |