From 0c40cf3be9f67f4077c0ac0d991bac0f22bf2b90 Mon Sep 17 00:00:00 2001 From: J08nY Date: Mon, 12 Aug 2024 15:27:36 +0200 Subject: Fix Botan 2.0.0 and 2.0.1 build. --- flake.nix | 9 +++++++++ nix/botan-2.0.0-2.0.1.patch | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 nix/botan-2.0.0-2.0.1.patch diff --git a/flake.nix b/flake.nix index 5d3608b..2ca2e29 100644 --- a/flake.nix +++ b/flake.nix @@ -86,6 +86,15 @@ urls = [ "http://botan.randombit.net/releases/Botan-${version}.${source_extension}" ]; inherit hash; }; + patches = + if pkgs.lib.hasPrefix "2.0" version then + (prev.patches or [ ]) + ++ [ + # Fix missing include https://github.com/randombit/botan/issues/903 + ./nix/botan-2.0.0-2.0.1.patch + ] + else + [ ]; } ); diff --git a/nix/botan-2.0.0-2.0.1.patch b/nix/botan-2.0.0-2.0.1.patch new file mode 100644 index 0000000..3a19870 --- /dev/null +++ b/nix/botan-2.0.0-2.0.1.patch @@ -0,0 +1,12 @@ +diff --git a/src/lib/filters/threaded_fork.cpp b/src/lib/filters/threaded_fork.cpp +index 170264353e..d379eacda2 100644 +--- a/src/lib/filters/threaded_fork.cpp ++++ b/src/lib/filters/threaded_fork.cpp +@@ -12,6 +12,7 @@ + + #include + #include ++#include + + namespace Botan { + -- cgit v1.3.1