13 boost = boost181.override { enableStatic = true; };
14 protobuf = protobuf_21.override { enableShared = false; };
16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
21 owner = "aws-samples";
22 repo = "aws-iot-securetunneling-localproxy";
23 rev = "v${finalAttrs.version}";
24 hash = "sha256-voUKfXa43mOltePQEXgmJ2EBaN06E6R/2Zz6O09ogyY=";
28 # gcc-13 compatibility fix:
29 # https://github.com/aws-samples/aws-iot-securetunneling-localproxy/pull/136
31 name = "gcc-13-part-1.patch";
32 url = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy/commit/f6ba73eaede61841534623cdb01b69d793124f4b.patch";
33 hash = "sha256-sB9GuEuHLyj6DXNPuYAMibUJXdkThKbS/fxvnJU3rS4=";
36 name = "gcc-13-part-2.patch";
37 url = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy/commit/de8779630d14e4f4969c9b171d826acfa847822b.patch";
38 hash = "sha256-11k6mRvCx72+5G/5LZZx2qnx10yfKpcAZofn8t8BD3E=";
42 nativeBuildInputs = [ cmake ];
44 buildInputs = [ openssl protobuf catch2 boost icu ];
46 # causes redefinition of _FORTIFY_SOURCE
47 hardeningDisable = [ "fortify3" ];
50 description = "AWS IoT Secure Tunneling Local Proxy Reference Implementation C++";
51 homepage = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ spalf ];
54 platforms = platforms.unix;
55 mainProgram = "localproxy";