forked from mirrors/nixpkgs
fe355bba78
This reduces the ramdisk installer size with a few megabytes when gzipped, but with about 40 MB when unpacked in memory. There are a few improvements possible: - strip the binaries. This saves another few MBs. - only copy the binaries we really need to /bin or /sbin. This could reduce the size of the installer a lot, especially with util-linux, of which we don't use that many tools at all. - try to move some packages we link with glibc right now (like util-linux) to dietlibc. This will not work for bash, already tried that. - try to use busybox as a replacement for everything. svn path=/nixu/trunk/; revision=4428
22 lines
1.1 KiB
Nix
22 lines
1.1 KiB
Nix
rec {
|
|
inherit (import /nixpkgs/trunk/pkgs/system/i686-linux.nix)
|
|
stdenv kernel bash bashStatic coreutils coreutilsDiet findutilsWrapper utillinux utillinuxStatic sysvinit
|
|
e2fsprogsDiet e2fsprogs
|
|
nettools nix subversion gcc wget which vim less screen openssh binutils
|
|
strace shadowutils iputils gnumake curl gnused gnutar gnugrep gzip
|
|
mingettyWrapper grubWrapper syslinux parted module_init_tools module_init_toolsStatic hotplug udev
|
|
dhcpWrapper man nano eject sysklogd kudzu;
|
|
|
|
boot = (import ./boot) {inherit stdenv kernel bash bashStatic coreutils findutilsWrapper
|
|
utillinux utillinuxStatic sysvinit e2fsprogs nettools nix subversion gcc wget which vim
|
|
less screen openssh binutils strace shadowutils iputils gnumake curl
|
|
gnused gnutar gnugrep gzip mingettyWrapper grubWrapper parted module_init_tools
|
|
hotplug udev dhcpWrapper man nano;};
|
|
|
|
init = (import ./init) {inherit stdenv bash bashStatic coreutilsDiet utillinux e2fsprogsDiet
|
|
nix shadowutils mingettyWrapper grubWrapper parted module_init_tools hotplug
|
|
dhcpWrapper man nano eject;};
|
|
|
|
everything = [boot sysvinit kernel sysklogd kudzu];
|
|
}
|