batman-adv: fix build on linux>=5.12

This commit is contained in:
Martin Weinelt 2021-05-13 18:19:32 +02:00
parent 4d8d997105
commit d5bda9ed61
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, kernel }:
{ lib, stdenv, fetchurl, fetchpatch, kernel }:
let cfg = import ./version.nix; in
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = cfg.sha256.${pname};
};
patches = [
(fetchpatch {
# Fix build with Kernel>=5.12, remove for batman-adv>=2021.1
url = "https://git.open-mesh.org/batman-adv.git/patch/6d67ca7f530d4620e3d066b02aefbfd8893d6c05?hp=362da918384286a959ad7c3455d9d33d9ff99d7d";
sha256 = "039x67yfkwl0b8af8vwx5m58ji2qn8x44rr1rkzi5j43cvmnh2cg";
})
];
nativeBuildInputs = kernel.moduleBuildDependencies;
hardeningDisable = [ "pic" ];