diff --git a/pkgs/tools/text/mdcat/default.nix b/pkgs/tools/text/mdcat/default.nix index c58582acda4f..dda3a3977cc4 100644 --- a/pkgs/tools/text/mdcat/default.nix +++ b/pkgs/tools/text/mdcat/default.nix @@ -22,6 +22,10 @@ rustPlatform.buildRustPackage rec { hash = "sha256-j6BFXx5cyjE3+fo1gGKlqpsxrm3i9HfQ9tJGNNjjLwo="; }; + patches = [ + ./fix-clippy.diff + ]; + nativeBuildInputs = [ pkg-config asciidoctor diff --git a/pkgs/tools/text/mdcat/fix-clippy.diff b/pkgs/tools/text/mdcat/fix-clippy.diff new file mode 100644 index 000000000000..d54b75ffd581 --- /dev/null +++ b/pkgs/tools/text/mdcat/fix-clippy.diff @@ -0,0 +1,14 @@ +diff --git a/pulldown-cmark-mdcat/src/terminal/osc.rs b/pulldown-cmark-mdcat/src/terminal/osc.rs +index 8fa2db6..dc2a2da 100644 +--- a/pulldown-cmark-mdcat/src/terminal/osc.rs ++++ b/pulldown-cmark-mdcat/src/terminal/osc.rs +@@ -20,9 +20,6 @@ pub fn write_osc(writer: &mut W, command: &str) -> Result<()> + Ok(()) + } + +-#[derive(Debug, PartialEq, Eq, Copy, Clone)] +-pub struct Osc8Links; +- + /// Whether the given `url` needs to get an explicit host. + /// + /// [OSC 8] links require that `file://` URLs give an explicit hostname, as