mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 15:41:16 +00:00
mdcat: fix compilation
This commit is contained in:
@@ -22,6 +22,10 @@ rustPlatform.buildRustPackage rec {
|
||||
hash = "sha256-j6BFXx5cyjE3+fo1gGKlqpsxrm3i9HfQ9tJGNNjjLwo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-clippy.diff
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
asciidoctor
|
||||
|
||||
14
pkgs/tools/text/mdcat/fix-clippy.diff
Normal file
14
pkgs/tools/text/mdcat/fix-clippy.diff
Normal file
@@ -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<W: Write + ?Sized>(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
|
||||
Reference in New Issue
Block a user