nixpkgs/pkgs/os-specific/linux/module-init-tools/default.nix
Eelco Dolstra 599648bf3b * module-init-tools: the shebang patch change caused bash and glibc to
end up in the closure of the dietlibc build of module-init-tools, 
  which is bad for the initrd.

svn path=/nixpkgs/trunk/; revision=12086
2008-06-14 10:14:36 +00:00

16 lines
536 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation ({
name = "module-init-tools-3.2.2";
src = fetchurl {
url = mirror://kernel/linux/utils/kernel/module-init-tools/module-init-tools-3.2.2.tar.bz2;
md5 = "a1ad0a09d3231673f70d631f3f5040e9";
};
patches = [./module-dir.patch];
postInstall = "rm $out/sbin/insmod.static"; # don't need it
} // (if stdenv ? isDietLibC then {
# We don't want bash (and therefore glibc) in the closure of the
# output, since we want to put this in a initrd.
dontPatchShebangs = true;
} else {}))