1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-07 11:05:30 +03:00

nixos/ananicy: fix eval when hardened kernel is used with ananicy-cpp (#361172)

This commit is contained in:
Masum Reza 2024-12-03 17:14:42 +05:30 committed by GitHub
commit 2bedc788d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ let
# Ananicy-CPP with BPF is not supported on hardened kernels https://github.com/NixOS/nixpkgs/issues/327382
finalPackage =
if (servicename == "ananicy-cpp" && config.boot.kernelPackages.isHardened) then
(cfg.package { withBpf = false; })
(cfg.package.override { withBpf = false; })
else
cfg.package;
in