1 { stdenv, lib, fetchFromGitHub, kernel }:
3 stdenv.mkDerivation rec {
5 version = "1.0-18-unstable-2024-04-25";
7 src = fetchFromGitHub {
9 repo = "gasket-driver";
10 rev = "5815ee3908a46a415aac616ac7b9aedcb98a504c";
11 sha256 = "O17+msok1fY5tdX1DvqYVw6plkUDF25i8sqwd6mxYf8=";
14 makeFlags = kernel.makeFlags ++ [
16 "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
19 buildFlags = [ "modules" ];
21 installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
22 installTargets = [ "modules_install" ];
24 sourceRoot = "${src.name}/src";
25 hardeningDisable = [ "pic" "format" ];
26 nativeBuildInputs = kernel.moduleBuildDependencies;
29 description = "Coral Gasket Driver allows usage of the Coral EdgeTPU on Linux systems";
30 homepage = "https://github.com/google/gasket-driver";
31 license = licenses.gpl2Only;
32 maintainers = [ lib.maintainers.kylehendricks ];
33 platforms = platforms.linux;
34 broken = versionOlder kernel.version "5.15";