Why does the Nix package manager depend on AWS libraries?

If I look through the dependencies of Nix 2.24.9, I see a lot of AWS libraries. For example:

aws-c-sdkutils-0.1.16
aws-c-event-stream-0.4.2
aws-c-http-0.8.1
aws-sdk-cpp-1.11.318
aws-c-common-0.9.17
aws-c-s3-0.5.7
aws-crt-cpp-0.26.8
aws-c-cal-0.6.12
aws-c-compression-0.2.18
aws-c-io-0.14.7
aws-c-mqtt-0.10.4
aws-c-auth-0.7.18
aws-checksums-0.1.18

What purpose do these dependencies serve?

1 Like

I think this is because nix has native support for S3 binary caches. It comes up periodically as an issue - there might be a github issue for it?

Edit: here’s one Build S3 and other stores as plugins · Issue #11234 · NixOS/nix · GitHub

1 Like

I think there is a feature flag in nix repo, I don’t think it exists in nixpkgs. tho its been a while since I checked it

1 Like