ci/eval: add rebuildsByPlatform to the comparison result (#363751)
[NixPkgs.git] / pkgs / by-name / lo / localproxy / package.nix
blobcd177a48e9516e9f8cf56245e175922ae97973c3
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7   openssl,
8   protobuf_21,
9   catch2,
10   boost181,
11   icu,
13 let
14   boost = boost181.override { enableStatic = true; };
15   protobuf = protobuf_21.override { enableShared = false; };
17 stdenv.mkDerivation (finalAttrs: {
18   pname = "localproxy";
19   version = "3.1.2";
21   src = fetchFromGitHub {
22     owner = "aws-samples";
23     repo = "aws-iot-securetunneling-localproxy";
24     rev = "v${finalAttrs.version}";
25     hash = "sha256-bIJLGJhSzBVqJaTWJj4Pmw/shA4Y0CzX4HhHtQZjfj0=";
26   };
28   patches = [
29     (fetchpatch {
30       name = "gcc-13.patch";
31       url = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy/commit/de8779630d14e4f4969c9b171d826acfa847822b.patch";
32       hash = "sha256-11k6mRvCx72+5G/5LZZx2qnx10yfKpcAZofn8t8BD3E=";
33     })
34   ];
36   nativeBuildInputs = [ cmake ];
38   buildInputs = [
39     openssl
40     protobuf
41     catch2
42     boost
43     icu
44   ];
46   postPatch = ''
47     sed -i '/set(OPENSSL_USE_STATIC_LIBS TRUE)/d' CMakeLists.txt
48   '';
50   # causes redefinition of _FORTIFY_SOURCE
51   hardeningDisable = [ "fortify3" ];
53   meta = with lib; {
54     description = "AWS IoT Secure Tunneling Local Proxy Reference Implementation C++";
55     homepage = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy";
56     license = licenses.asl20;
57     maintainers = with maintainers; [ spalf ];
58     platforms = platforms.unix;
59     mainProgram = "localproxy";
60   };