From dc14a2a5129cae155c823a94371f71854e18e379 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Wed, 26 Jul 2023 17:21:22 +0200 Subject: [PATCH 1/2] localproxy: init at 3.1.0 --- .../networking/localproxy/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/applications/networking/localproxy/default.nix diff --git a/pkgs/applications/networking/localproxy/default.nix b/pkgs/applications/networking/localproxy/default.nix new file mode 100644 index 000000000000..ed2817ed10a4 --- /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; + }; + }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 80940acd7645..744bf3b60c81 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10265,6 +10265,8 @@ with pkgs; lmp = callPackage ../tools/security/lmp { }; + localproxy = callPackage ../applications/networking/localproxy { }; + localstack = with python3Packages; toPythonApplication localstack; localtime = callPackage ../tools/system/localtime { }; From 647560fa692c2603ac9e87cadd6a453ea18472e2 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Wed, 26 Jul 2023 17:22:46 +0200 Subject: [PATCH 2/2] maintainers: edit spalf --- maintainers/maintainer-list.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e91cc0e4174d..31c502b03512 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15645,6 +15645,8 @@ spalf = { email = "tom@tombarrett.xyz"; name = "tom barrett"; + github = "70m6"; + githubId = 105207964; }; spease = { email = "peasteven@gmail.com";