torrenttools: patch for fmt_9

It’d take more work to get this working with the latest version,
and this project seems abandoned, so I didn’t bother for now.
This commit is contained in:
Emily
2024-11-20 02:33:34 +00:00
parent 8e3554d3e3
commit 693a0eaede
3 changed files with 34 additions and 1 deletions
+4
View File
@@ -54,6 +54,10 @@ stdenv.mkDerivation rec {
];
sourceRoot = "torrenttools";
patches = [
./fmt-9.patch
];
postUnpack = ''
cp -pr cliprogress torrenttools/external/cliprogress
cp -pr dottorrent torrenttools/external/dottorrent
+29
View File
@@ -0,0 +1,29 @@
diff --git a/include/file_matcher.hpp b/include/file_matcher.hpp
index c10c7be405..b67baec0ef 100644
--- a/include/file_matcher.hpp
+++ b/include/file_matcher.hpp
@@ -47,7 +47,7 @@
}
std::string error;
- std::string pattern = ".*.{}$"_format(extension);
+ std::string pattern = fmt::format(".*.{}$", extension);
file_include_list_.Add(pattern, &error);
file_include_list_empty_ = false;
Ensures(error.empty());
@@ -62,7 +62,7 @@
}
std::string error;
- std::string pattern = ".*\\.{}$"_format(extension);
+ std::string pattern = fmt::format(".*\\.{}$", extension);
file_exclude_list_.Add(pattern, &error);
file_exclude_list_empty_ = false;
Ensures(error.empty());
@@ -243,4 +243,4 @@
};
-} // namespace torrenttools
\ No newline at end of file
+} // namespace torrenttools
+1 -1
View File
@@ -16008,7 +16008,7 @@ with pkgs;
};
torrenttools = callPackage ../tools/misc/torrenttools {
fmt = fmt_8;
fmt = fmt_9;
};
tony = libsForQt5.callPackage ../applications/audio/tony { };