Merge pull request #149244 from Artturin/kmodpathpriority

kmod: switch the priority of module dirs
This commit is contained in:
Artturi 2021-12-09 05:49:53 +02:00 committed by GitHub
commit 57013fb257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
}:
let
systems = [ "/run/current-system/kernel-modules" "/run/booted-system/kernel-modules" "" ];
systems = [ "/run/booted-system/kernel-modules" "/run/current-system/kernel-modules" "" ];
modulesDirs = lib.concatMapStringsSep ":" (x: "${x}/lib/modules") systems;
in stdenv.mkDerivation rec {
@ -52,5 +52,6 @@ in stdenv.mkDerivation rec {
changelog = "https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/plain/NEWS?h=v${version}";
license = with licenses; [ lgpl21Plus gpl2Plus ]; # GPLv2+ for tools
platforms = platforms.unix;
maintainers = with maintainers; [ artturin ];
};
}