This is based on nixpkgs
commit 862277ac9d34273cd953f42061e23d488d6b7e8b.
The resulting image is less than 25 MiB compressed.
The actual crosslink
closure got shrunk from ~180 MiB to ~60 MiB just by using beam_minimal
rather than beam
as the base set in beams.nix
!
So in my nixos-unstable experiments, the size of the erlang installations vary pretty wildly. This is important for me as I'm trying to release Phoenix apps with nix using dockerTools directly from a mixRelease.
Size of beam_minimal's erlang: 299M
Size of beam_minimal without install-docs: 99M
Size with the overrides above: 72M
These are the sizes of the
/nix/store/*-erlang-25.*
dirs with the variousoverrides
settings.