Skip to content

Commit

Permalink
linuxPackages_latest.gasket: fix build with 6.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Nov 21, 2024
1 parent 95ea721 commit d7a4d36
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions pkgs/os-specific/linux/gasket/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ stdenv, lib, fetchFromGitHub, kernel }:
{
stdenv,
lib,
fetchFromGitHub,
fetchpatch2,
kernel
}:

stdenv.mkDerivation rec {
pname = "gasket";
Expand All @@ -11,6 +17,20 @@ stdenv.mkDerivation rec {
sha256 = "O17+msok1fY5tdX1DvqYVw6plkUDF25i8sqwd6mxYf8=";
};

patches = [
(fetchpatch2 {
# https://github.com/google/gasket-driver/issues/36
# https://github.com/google/gasket-driver/pull/35
name = "linux-6.12-compat.patch";
url = "https://github.com/google/gasket-driver/commit/4b2a1464f3b619daaf0f6c664c954a42c4b7ce00.patch";
hash = "sha256-UOoOSEnpUMa4QXWVFpGFxBoF5szXaLEfcWtfKatO5XY=";
})
];

postPatch = ''
cd src
'';

makeFlags = kernel.makeFlags ++ [
"-C"
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
Expand All @@ -21,7 +41,6 @@ stdenv.mkDerivation rec {
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
installTargets = [ "modules_install" ];

sourceRoot = "${src.name}/src";
hardeningDisable = [ "pic" "format" ];
nativeBuildInputs = kernel.moduleBuildDependencies;

Expand Down

0 comments on commit d7a4d36

Please sign in to comment.