forked from mirrors/nixpkgs
Merge pull request #20641 from mayflower/fix/installer-closure-size
Reduce closure size of installer images
This commit is contained in:
commit
d97a379510
|
@ -25,6 +25,6 @@ stdenv.mkDerivation {
|
|||
|
||||
# Generate the squashfs image.
|
||||
mksquashfs nix-path-registration $storePaths $out \
|
||||
-keep-as-directory -all-root
|
||||
-keep-as-directory -all-root -comp xz
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# Include some utilities that are useful for installing or repairing
|
||||
# the system.
|
||||
environment.systemPackages = [
|
||||
pkgs.w3m # needed for the manual anyway
|
||||
pkgs.w3m-nox # needed for the manual anyway
|
||||
pkgs.testdisk # useful for repairing boot problems
|
||||
pkgs.mssys # for writing Microsoft boot sectors / MBRs
|
||||
pkgs.efibootmgr
|
||||
|
@ -42,8 +42,6 @@
|
|||
# Some compression/archiver tools.
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dar # disk archiver
|
||||
pkgs.cabextract
|
||||
];
|
||||
|
||||
# Include support for various filesystems.
|
||||
|
|
|
@ -14,4 +14,6 @@ with lib;
|
|||
|
||||
programs.man.enable = mkDefault false;
|
||||
programs.info.enable = mkDefault false;
|
||||
|
||||
sound.enable = mkDefault false;
|
||||
}
|
||||
|
|
|
@ -2,16 +2,19 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "giblib-1.2.4";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://linuxbrit.co.uk/downloads/${name}.tar.gz";
|
||||
sha256 = "1b4bmbmj52glq0s898lppkpzxlprq9aav49r06j2wx4dv3212rhp";
|
||||
};
|
||||
|
||||
buildInputs = [xlibsWrapper imlib2];
|
||||
|
||||
buildInputs = [ xlibsWrapper ];
|
||||
propagatedBuildInputs = [ imlib2 ];
|
||||
|
||||
meta = {
|
||||
homepage = http://linuxbrit.co.uk/giblib/;
|
||||
description = "wrapper library for imlib2, and other stuff";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ stdenv, fetchurl, xlibsWrapper, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig }:
|
||||
{ stdenv, fetchurl, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig
|
||||
, freetype
|
||||
, x11Support ? true, xlibsWrapper ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "imlib2-1.4.9";
|
||||
|
@ -8,7 +12,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "08809xxk2555yj6glixzw9a0x3x8cx55imd89kj3r0h152bn8a3x";
|
||||
};
|
||||
|
||||
buildInputs = [ xlibsWrapper libjpeg libtiff giflib libpng bzip2 ];
|
||||
buildInputs = [ libjpeg libtiff giflib libpng bzip2 freetype ]
|
||||
++ optional x11Support xlibsWrapper;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
|
@ -21,7 +26,14 @@ stdenv.mkDerivation rec {
|
|||
|
||||
# Do not build amd64 assembly code on Darwin, because it fails to compile
|
||||
# with unknow directive errors
|
||||
configureFlags = if stdenv.isDarwin then [ "--enable-amd64=no" ] else null;
|
||||
configureFlags = optional stdenv.isDarwin "--enable-amd64=no"
|
||||
++ optional (!x11Support) "--without-x";
|
||||
|
||||
outputs = [ "out" "bin" "dev" ];
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput bin/imlib2-config "$dev"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Image manipulation library";
|
||||
|
@ -34,8 +46,8 @@ stdenv.mkDerivation rec {
|
|||
easily, without sacrificing speed.
|
||||
'';
|
||||
|
||||
license = stdenv.lib.licenses.free;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = with stdenv.lib.maintainers; [ spwhitt ];
|
||||
license = licenses.free;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ spwhitt ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,6 +27,8 @@ with stdenv.lib;
|
|||
MODULE_COMPRESS_XZ y
|
||||
''}
|
||||
|
||||
KERNEL_XZ y
|
||||
|
||||
# Debugging.
|
||||
DEBUG_KERNEL y
|
||||
TIMER_STATS y
|
||||
|
|
|
@ -7452,6 +7452,9 @@ in
|
|||
iml = callPackage ../development/libraries/iml { };
|
||||
|
||||
imlib2 = callPackage ../development/libraries/imlib2 { };
|
||||
imlib2-nox = imlib2.override {
|
||||
x11Support = false;
|
||||
};
|
||||
|
||||
imlibsetroot = callPackage ../applications/graphics/imlibsetroot { libXinerama = xorg.libXinerama; } ;
|
||||
|
||||
|
@ -15103,13 +15106,15 @@ in
|
|||
# Version without X11
|
||||
w3m-nox = w3m.override {
|
||||
x11Support = false;
|
||||
imlib2 = imlib2-nox;
|
||||
};
|
||||
|
||||
# Version for batch text processing, not a good browser
|
||||
w3m-batch = w3m.override {
|
||||
graphicsSupport = false;
|
||||
x11Support = false;
|
||||
mouseSupport = false;
|
||||
x11Support = false;
|
||||
imlib2 = imlib2-nox;
|
||||
};
|
||||
|
||||
weechat = callPackage ../applications/networking/irc/weechat {
|
||||
|
|
Loading…
Reference in a new issue