aboutsummaryrefslogtreecommitdiff
path: root/pkgs/libatsha204
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/libatsha204')
-rw-r--r--pkgs/libatsha204/default.nix3
-rw-r--r--pkgs/libatsha204/multiple-definitions.patch13
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/libatsha204/default.nix b/pkgs/libatsha204/default.nix
index 96a621d..10cd859 100644
--- a/pkgs/libatsha204/default.nix
+++ b/pkgs/libatsha204/default.nix
@@ -19,6 +19,9 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
sha256 = "1lhvqdy2sfbvz9y9lwqhxggpr8rwfd66v73gv9s7b7811r6way20";
};
+ patches = [
+ ./multiple-definitions.patch
+ ];
buildInputs = [openssl unbound];
nativeBuildInputs = [pkg-config perl patchelf];
diff --git a/pkgs/libatsha204/multiple-definitions.patch b/pkgs/libatsha204/multiple-definitions.patch
new file mode 100644
index 0000000..94dd5fc
--- /dev/null
+++ b/pkgs/libatsha204/multiple-definitions.patch
@@ -0,0 +1,13 @@
+diff --git a/src/libatsha204/dnsmagic.c b/src/libatsha204/dnsmagic.c
+index d5f82b4..dc0bb90 100644
+--- a/src/libatsha204/dnsmagic.c
++++ b/src/libatsha204/dnsmagic.c
+@@ -42,7 +42,7 @@
+ /*
+ * Global variable with configuration and some initial config values.
+ */
+-atsha_configuration g_config;
++extern atsha_configuration g_config;
+
+ /*
+ * Get decimal number from its string representation