Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions pkgs/os-specific/linux/kmod/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchzip, autoconf, automake, docbook_xml_dtd_42
{ stdenv, lib, fetchzip, fetchpatch, autoconf, automake, docbook_xml_dtd_42
, docbook_xml_dtd_43, docbook_xsl, gtk-doc, libtool, pkg-config
, libxslt, xz, zstd, elf-header
, withDevdoc ? stdenv.hostPlatform == stdenv.buildPlatform
Expand Down Expand Up @@ -48,8 +48,14 @@ in stdenv.mkDerivation rec {
(lib.enableFeature withDevdoc "gtk-doc")
] ++ lib.optional withStatic "--enable-static";

patches = [ ./module-dir.patch ]
++ lib.optional withStatic ./enable-static.patch;
patches = [
./module-dir.patch
(fetchpatch {
name = "musl.patch";
url = "https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/patch/?id=11eb9bc67c319900ab00523997323a97d2d08ad2";
hash = "sha256-CYG615elMWces6QGQRg2H/NL7W4XsG9Zvz5H+xsdFFo=";
})
] ++ lib.optional withStatic ./enable-static.patch;

postInstall = ''
for prog in rmmod insmod lsmod modinfo modprobe depmod; do
Expand Down