summary refs log tree commit diff
path: root/modules/packages/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'modules/packages/overlays')
-rw-r--r--modules/packages/overlays/openvpn-iomanip.patch13
-rw-r--r--modules/packages/overlays/openvpn.nix12
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/packages/overlays/openvpn-iomanip.patch b/modules/packages/overlays/openvpn-iomanip.patch
new file mode 100644
index 0000000..f334a34
--- /dev/null
+++ b/modules/packages/overlays/openvpn-iomanip.patch
@@ -0,0 +1,13 @@
+diff --git a/src/tests/unit/machine-id.cpp b/src/tests/unit/machine-id.cpp
+index 8131947..a875743 100644
+--- a/src/tests/unit/machine-id.cpp
++++ b/src/tests/unit/machine-id.cpp
+@@ -15,6 +15,7 @@
+ #include "build-config.h"
+ 
+ #include <iostream>
++#include <iomanip>
+ #include <fstream>
+ #include <string>
+ #include <vector>
+
diff --git a/modules/packages/overlays/openvpn.nix b/modules/packages/overlays/openvpn.nix
new file mode 100644
index 0000000..f927f80
--- /dev/null
+++ b/modules/packages/overlays/openvpn.nix
@@ -0,0 +1,12 @@
+{...}:
+{
+  nixpkgs.overlays = [
+    (final: prev: {
+      openvpn3 = prev.openvpn3.overrideAttrs (old: {
+        patches = (old.patches or []) ++ [
+          ./openvpn-iomanip.patch
+        ];
+      });
+    })
+  ];
+}