kmod: add patch to correct behaviour with --field
This came up in https://github.com/NixOS/nixpkgs/pull/96008. Without this patch modinfo always prints the module name for builtin modules, even if an explicit --field is passed.
This commit is contained in:
@@ -24,7 +24,7 @@ in stdenv.mkDerivation rec {
|
||||
"--with-modulesdirs=${modulesDirs}"
|
||||
] ++ lib.optional withStatic "--enable-static";
|
||||
|
||||
patches = [ ./module-dir.patch ]
|
||||
patches = [ ./module-dir.patch ./no-name-field.patch ]
|
||||
++ lib.optional stdenv.isDarwin ./darwin.patch
|
||||
++ lib.optional withStatic ./enable-static.patch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user