···2324 postInstall = "rm $out/sbin/insmod.static"; # don't need it
2526- # We don't want bash (and therefore glibc) in the closure of the
27- # output, since we want to put this in a initrd.
28- dontPatchShebangs = stdenv ? isDietLibC;
29-30 meta = {
31 homepage = http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/;
32 description = "Tools for loading and managing Linux kernel modules";
···2324 postInstall = "rm $out/sbin/insmod.static"; # don't need it
25000026 meta = {
27 homepage = http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/;
28 description = "Tools for loading and managing Linux kernel modules";
-30
pkgs/stdenv/adapters.nix
···29 overrideSetup = stdenv: setupScript: stdenv.override { inherit setupScript; };
303132- # Return a modified stdenv that uses dietlibc to create small
33- # statically linked binaries.
34- useDietLibC = stdenv: stdenv //
35- { mkDerivation = args: stdenv.mkDerivation (args // {
36- NIX_CFLAGS_LINK = "-static";
37-38- # libcompat.a contains some commonly used functions.
39- NIX_LDFLAGS = "-lcompat";
40-41- # These are added *after* the command-line flags, so we'll
42- # always optimise for size.
43- NIX_CFLAGS_COMPILE =
44- args.NIX_CFLAGS_COMPILE or ""
45- + " -Os -s -D_BSD_SOURCE=1";
46-47- configureFlags =
48- args.configureFlags or ""
49- + " --disable-shared"; # brrr...
50-51- NIX_GCC = import ../build-support/gcc-wrapper {
52- inherit stdenv;
53- libc = pkgs.dietlibc;
54- inherit (stdenv.gcc) gcc binutils nativeTools nativePrefix;
55- nativeLibc = false;
56- };
57- });
58- isDietLibC = true;
59- };
60-61-62 # Return a modified stdenv that uses klibc to create small
63 # statically linked binaries.
64 useKlibc = stdenv: klibc: stdenv //
···29 overrideSetup = stdenv: setupScript: stdenv.override { inherit setupScript; };
303100000000000000000000000000000032 # Return a modified stdenv that uses klibc to create small
33 # statically linked binaries.
34 useKlibc = stdenv: klibc: stdenv //