aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix9
-rw-r--r--nix/botan-2.0.0-2.0.1.patch12
2 files changed, 21 insertions, 0 deletions
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 <botan/internal/semaphore.h>
+ #include <botan/internal/barrier.h>
++#include <functional>
+
+ namespace Botan {
+