linuxPackages.ax99100: don't use lib.optional with a list

This commit is contained in:
figsoda 2023-05-29 19:38:13 -04:00
parent 58c8583551
commit 8d91de5145

View File

@ -1,6 +1,6 @@
{ kernel, stdenv, kmod, lib, fetchzip, fetchpatch, dos2unix }:
stdenv.mkDerivation
{
{ kernel, stdenv, kmod, lib, fetchzip, dos2unix }:
stdenv.mkDerivation {
pname = "ax99100";
version = "1.8.0";
@ -26,9 +26,9 @@ stdenv.mkDerivation
patches = [
./kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch
./kernel-6.1-set_termios-const-ktermios.patch
] ++ (lib.optional (lib.versionAtLeast kernel.version "6.2") [
] ++ lib.optionals (lib.versionAtLeast kernel.version "6.2") [
./kernel-6.2-fix-pointer-type.patch
]);
];
patchFlags = [ "-p0" ];