aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2024-08-12 15:27:36 +0200
committerJ08nY2024-08-12 15:27:36 +0200
commit0c40cf3be9f67f4077c0ac0d991bac0f22bf2b90 (patch)
treed00053a8c450a7b96982eceaa6e8366c62fb5fc7
parent23e27b1e8ab5769ac1578c2670b132a26b58fd7e (diff)
downloadECTester-0c40cf3be9f67f4077c0ac0d991bac0f22bf2b90.tar.gz
ECTester-0c40cf3be9f67f4077c0ac0d991bac0f22bf2b90.tar.zst
ECTester-0c40cf3be9f67f4077c0ac0d991bac0f22bf2b90.zip
-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 {
+