aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/misc/bat/macos.patch
blob: 549782f0c91b24f530fca4a8dafb1c1baa77b23e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/assets.rs b/src/assets.rs
index 4f8556f..222abc2 100644
--- a/src/assets.rs
+++ b/src/assets.rs
@@ -336,7 +336,7 @@ mod tests {
         assert_eq!(test.syntax_for_file("Makefile"), "Makefile");
     }
 
-    #[cfg(unix)]
+    #[cfg(all(unix,not(target_os = "macos")))]
     #[test]
     fn syntax_detection_invalid_utf8() {
         use std::os::unix::ffi::OsStrExt;