summary refs log tree commit diff
path: root/pkgs/os-specific/linux/module-init-tools/default.nix
blob: 5fdfedc3e2fe3d0911bcb1c8a0f022e629b90083 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{stdenv, fetchurl}:

stdenv.mkDerivation {
  name = "module-init-tools-3.4";
  
  src = [
    (fetchurl {
      url = mirror://kernel/linux/utils/kernel/module-init-tools/module-init-tools-3.4.tar.bz2;
      sha256 = "11rxcdr915skc1m6dcavavw8dhcsy24wpi56sw1m4akj2frs3iwn";
    })

    # Upstream forgot to include the generated manpages.  Thankfully
    # the Gentoo people fixed this for us :-)
    (fetchurl {
      url = mirror://gentoo/distfiles/module-init-tools-3.4-manpages.tar.bz2;
      sha256 = "0jid24girjhr30mrdckylkcz11v4in46nshhrqv18yaxm6506v6j";
    })
  ];

  patches = [./module-dir.patch];
  
  postInstall = "rm $out/sbin/insmod.static"; # don't need it

  # We don't want bash (and therefore glibc) in the closure of the
  # output, since we want to put this in a initrd.
  dontPatchShebangs = stdenv ? isDietLibC;

  meta = {
    homepage = http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/;
    description = "Tools for loading and managing Linux kernel modules";
  };
}