nixpkgs/pkgs/applications/networking/localproxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
987 B
Nix
Raw Normal View History

2023-07-26 15:21:22 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, openssl
, protobuf_21
2023-07-26 15:21:22 +00:00
, catch2
, boost181
, icu
}:
let
boost = boost181.override { enableStatic = true; };
protobuf = protobuf_21.override { enableShared = false; };
2023-07-26 15:21:22 +00:00
in
stdenv.mkDerivation (finalAttrs: {
pname = "localproxy";
version = "3.1.0";
2023-09-20 14:28:35 +00:00
src = fetchFromGitHub {
owner = "aws-samples";
repo = "aws-iot-securetunneling-localproxy";
rev = "v${finalAttrs.version}";
hash = "sha256-ec72bvBkRBj4qlTNfzNPeQt02OfOPA8y2PoejHpP9cY=";
};
2023-07-26 15:21:22 +00:00
nativeBuildInputs = [ cmake ];
2023-09-20 14:28:35 +00:00
buildInputs = [ openssl protobuf catch2 boost icu ];
2023-07-26 15:21:22 +00:00
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
2023-09-20 14:28:35 +00:00
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;
};
})