depot/third_party/nixpkgs/pkgs/applications/networking/localproxy/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

39 lines
957 B
Nix

{ 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;
};
})