From 74b950dc4f2ad30eac429fb597c4e15124bdcf96 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Sun, 31 Dec 2017 07:07:16 +0000 Subject: [PATCH] beegfs: restrict kernel version BeeGFS 6.17 fails to build with Linux 4.14. --- pkgs/os-specific/linux/beegfs/kernel-module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/beegfs/kernel-module.nix b/pkgs/os-specific/linux/beegfs/kernel-module.nix index e68a9eab3785..4525d156159b 100644 --- a/pkgs/os-specific/linux/beegfs/kernel-module.nix +++ b/pkgs/os-specific/linux/beegfs/kernel-module.nix @@ -16,6 +16,8 @@ in stdenv.mkDerivation { nativeBuildInputs = [ which kmod ]; + buildInputs = kernel.moduleBuildDependencies; + makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build/" ]; postPatch = '' @@ -39,5 +41,6 @@ in stdenv.mkDerivation { platforms = [ "i686-linux" "x86_64-linux" ]; license = licenses.gpl2; maintainers = with maintainers; [ markuskowa ]; + broken = versionAtLeast kernel.version "4.14"; }; }