summary refs log tree commit diff
path: root/nixos/modules/config/system-path.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2018-08-28 22:05:53 +0200
committerVladimír Čunát <vcunat@gmail.com>2018-08-28 22:17:07 +0200
commitfd3927ac29fdae933d3007943ad73a5dc81335dc (patch)
tree1961368b3925a72b404226e56d14a5daf8324783 /nixos/modules/config/system-path.nix
parent85facc4a7002ca04c8e2ac365e0cd1a80a633373 (diff)
downloadnixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.tar
nixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.tar.gz
nixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.tar.bz2
nixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.tar.lz
nixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.tar.xz
nixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.tar.zst
nixpkgs-fd3927ac29fdae933d3007943ad73a5dc81335dc.zip
coreutils: split a coreutils-full version
- default coreutils is stripped of /share/ (11 -> 2 MiB)
- coreutils-full retains /share/ and adds openssl for faster *sum tools
- NixOS systemPackages contains coreutils-full
- *Support parameter defaults are moved inside
  (it seemed confusing to have `? false` and "at once" with `? isLinux`)

Closure considerations:
+ typical build-time closure will get lighter by ~9 MiB
- typical closure of NixOS installation will grow by ~2 MiB,
  due to referring to both versions.  I think it would be possible to
  re-use most of the utils between the two versions, but the expression
  would get much more complex.

I considered having stdenv with minimal coreutils and the default
`coreutils` attribute being full, but it turned out there were too many
trivial references in nixpkgs, so it didn't seem easy to keep rebuild
impact of openssl from growing significantly.
Diffstat (limited to 'nixos/modules/config/system-path.nix')
-rw-r--r--nixos/modules/config/system-path.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix
index 36115166501..19c7b7cabfc 100644
--- a/nixos/modules/config/system-path.nix
+++ b/nixos/modules/config/system-path.nix
@@ -13,7 +13,7 @@ let
       pkgs.attr
       pkgs.bashInteractive # bash with ncurses support
       pkgs.bzip2
-      pkgs.coreutils
+      pkgs.coreutils-full
       pkgs.cpio
       pkgs.curl
       pkgs.diffutils