about summary refs log tree commit diff
path: root/pkgs/applications/networking/localproxy
diff options
context:
space:
mode:
authortom barrett <tom@tombarrett.xyz>2023-07-26 17:21:22 +0200
committertom barrett <thomas.barrett@de.kaercher.com>2023-07-26 17:44:25 +0200
commitdc14a2a5129cae155c823a94371f71854e18e379 (patch)
tree5305bf8ff8dfffdbe505957ce80da4bf6503f666 /pkgs/applications/networking/localproxy
parent6b7ad5e523886f03672296f4c3b1debaa55e69b6 (diff)
localproxy: init at 3.1.0
Diffstat (limited to 'pkgs/applications/networking/localproxy')
-rw-r--r--pkgs/applications/networking/localproxy/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/networking/localproxy/default.nix b/pkgs/applications/networking/localproxy/default.nix
new file mode 100644
index 0000000000000..ed2817ed10a49
--- /dev/null
+++ b/pkgs/applications/networking/localproxy/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, openssl
+, protobuf3_19
+, catch2
+, boost181
+, icu
+}:
+let
+  boost = boost181.override { enableStatic = true; };
+in
+stdenv.mkDerivation (finalAttrs: {
+  pname = "localproxy";
+  version = "3.1.0";
+
+    src = fetchFromGitHub {
+      owner = "aws-samples";
+      repo = "aws-iot-securetunneling-localproxy";
+      rev = "v${finalAttrs.version}";
+      hash = "sha256-ec72bvBkRBj4qlTNfzNPeQt02OfOPA8y2PoejHpP9cY=";
+    };
+
+  nativeBuildInputs = [ cmake ];
+
+  buildInputs = [ openssl protobuf3_19 catch2 boost icu ];
+
+  # causes redefinition of _FORTIFY_SOURCE
+  hardeningDisable = [ "fortify3" ];
+
+    meta = with lib; {
+      description = "AWS IoT Secure Tunneling Local Proxy Reference Implementation C++";
+      homepage = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy";
+      license = licenses.asl20;
+      maintainers = with maintainers; [spalf];
+      platforms = platforms.unix;
+    };
+  })