diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-02-28 12:04:10 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-04-06 16:36:27 -0400 |
commit | 7cc40e15e46033924d9d141b3869a94d9d31a973 (patch) | |
tree | ae874c0e48d991f4f438b929767c347b5070590e /nixos/modules/config | |
parent | 8a5059e1cc717299b4e58459c70591e12db0fca2 (diff) | |
download | nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.tar nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.gz nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.bz2 nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.lz nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.xz nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.tar.zst nixpkgs-7cc40e15e46033924d9d141b3869a94d9d31a973.zip |
treewide/nixos: use stdenv.cc.libc instead of glibc when available
This prevents duplication in cross-compiled nixos machines. The bootstrapped glibc differs from the natively compiled one, so we get two glibc’s in the closure. To reduce closure size, just use stdenv.cc.libc where available.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/networking.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index dd36696b94d..03944de8249 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -197,7 +197,7 @@ in } // optionalAttrs (pkgs.stdenv.hostPlatform.libc == "glibc") { # /etc/rpc: RPC program numbers. - rpc.source = pkgs.glibc.out + "/etc/rpc"; + rpc.source = pkgs.stdenv.cc.libc.out + "/etc/rpc"; }; networking.proxy.envVars = |