13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 hash = "sha256-zpxvADZfYTUdlNLMZJSCanPL40EGl9BBCxR7oDhvOTw=";
37 # Disable a test that requires an internet connection.
38 substituteInPlace tests/CMakeLists.txt \
39 --replace "add_subdirectory(cmake_fetch_content)" ""
49 description = "Header-only C++20 bencode serialization/deserialization library";
50 homepage = "https://github.com/fbdtemme/bencode";
51 changelog = "https://github.com/fbdtemme/bencode/blob/${src.rev}/CHANGELOG.md";
52 license = licenses.mit;
53 maintainers = with maintainers; [ azahi ];
54 platforms = platforms.unix;
55 # Broken because the default stdenv on these targets doesn't support C++20.
56 broken = with stdenv; isDarwin || (isLinux && isAarch64);