biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / networking / localproxy / default.nix
blob3de21a4c7112790885270890633af4b3b03f315e
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 , openssl
7 , protobuf_21
8 , catch2
9 , boost181
10 , icu
12 let
13   boost = boost181.override { enableStatic = true; };
14   protobuf = protobuf_21.override { enableShared = false; };
16 stdenv.mkDerivation (finalAttrs: {
17   pname = "localproxy";
18   version = "3.1.1";
20   src = fetchFromGitHub {
21     owner = "aws-samples";
22     repo = "aws-iot-securetunneling-localproxy";
23     rev = "v${finalAttrs.version}";
24     hash = "sha256-voUKfXa43mOltePQEXgmJ2EBaN06E6R/2Zz6O09ogyY=";
25   };
27   patches = [
28     # gcc-13 compatibility fix:
29     #   https://github.com/aws-samples/aws-iot-securetunneling-localproxy/pull/136
30     (fetchpatch {
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=";
34     })
35     (fetchpatch {
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=";
39     })
40   ];
42   nativeBuildInputs = [ cmake ];
44   buildInputs = [ openssl protobuf catch2 boost icu ];
46   # causes redefinition of _FORTIFY_SOURCE
47   hardeningDisable = [ "fortify3" ];
49   meta = with lib; {
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";
56   };