linux: cleanup zlib conditional dependency

zlib was added to its own optional statement, when there was already another for
5.2
This commit is contained in:
Ben Wolsieffer 2021-09-26 14:23:23 -04:00
parent 06e0a8e43a
commit a6c34ff363

View file

@ -315,9 +315,8 @@ stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.linux-kernel kernelPat
++ optional (lib.versionAtLeast version "4.14" && lib.versionOlder version "5.8") libelf
# Removed util-linuxMinimal since it should not be a dependency.
++ optionals (lib.versionAtLeast version "4.16") [ bison flex ]
++ optionals (lib.versionAtLeast version "5.2") [ cpio pahole ]
++ optionals (lib.versionAtLeast version "5.2") [ cpio pahole zlib ]
++ optional (lib.versionAtLeast version "5.8") elfutils
++ optional (lib.versionAtLeast version "5.2") zlib
;
hardeningDisable = [ "bindnow" "format" "fortify" "stackprotector" "pic" "pie" ];