Closed rycee closed 1 year ago
This reduces the build closure substantially since it no longer pulls in the entire C build environment.
For example, using build-project.nix:
build-project.nix
With stdenv:
stdenv
$ nix path-info --closure-size --human-readable $(nix-build --no-out-link -A inputDerivation build-project.nix) … /nix/store/v96sbzyinh0zfkk0c13i6dx3hkrlvds1-build-project-output 322.5M
With stdenvNoCC:
stdenvNoCC
$ nix path-info --closure-size --human-readable $(nix-build --no-out-link -A inputDerivation build-project.nix) … /nix/store/9v3jldf3cnm204nw5w6szb8rvdxqhpsz-build-project-output 108.0M
This reduces the build closure substantially since it no longer pulls in the entire C build environment.
For example, using
build-project.nix
:With
stdenv
:With
stdenvNoCC
: