@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
1717 url = "https://github.com/intel/linux-sgx-driver/commit/276c5c6a064d22358542f5e0aa96b1c0ace5d695.patch";
1818 sha256 = "sha256-PmchqYENIbnJ51G/tkdap/g20LUrJEoQ4rDtqy6hj24=";
1919 })
20+ # Fixes detection with kernel >= 5.11
21+ (fetchpatch {
22+ url = "https://github.com/intel/linux-sgx-driver/commit/ed2c256929962db1a8805db53bed09bb8f2f4de3.patch";
23+ sha256 = "sha256-MRbgS4U8FTCP1J1n+rhsvbXxKDytfl6B7YlT9Izq05U=";
24+ })
2025 ];
2126
2227 hardeningDisable = [ "pic" ];
@@ -46,8 +51,6 @@ stdenv.mkDerivation rec {
4651 homepage = "https://github.com/intel/linux-sgx-driver";
4752 license = with licenses; [ bsd3 /* OR */ gpl2Only ];
4853 maintainers = with maintainers; [ oxalica ];
49− platforms = platforms.linux;
50− # The driver is already in kernel >= 5.11.0.
51− broken = kernelAtLeast "5.11.0";
54+ platforms = [ "x86_64-linux" ];
5255 };
5356}