mirror of
https://github.com/justinwoo/spago2nix.git
synced 2024-11-22 04:25:06 +03:00
Use stdenvNoCC in generated output
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`: $ 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`: $ 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 commit is contained in:
parent
874efd1d8e
commit
21ae03ddf4
@ -173,7 +173,7 @@ in {
|
||||
mkBuildProjectOutput =
|
||||
{ src, purs }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "build-project-output";
|
||||
src = src;
|
||||
|
||||
@ -211,7 +211,7 @@ printResult (Fetched
|
||||
<<< replace { from: "REV", to: rev }
|
||||
<<< replace { from: "SHA256", to: sha256 }
|
||||
$ """
|
||||
"PKGNAME" = pkgs.stdenv.mkDerivation {
|
||||
"PKGNAME" = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "PKGNAME";
|
||||
version = "VERSION";
|
||||
src = pkgs.fetchgit {
|
||||
|
Loading…
Reference in New Issue
Block a user