Skip to content

Commit

Permalink
Merge pull request NixOS#224254 from kylehendricks/gasket-1.0-18
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Apr 12, 2023
2 parents 1bb6fd5 + eb0f101 commit c05b69b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8421,6 +8421,12 @@
githubId = 2422454;
name = "Kai Wohlfahrt";
};
kylehendricks = {
name = "Kyle Hendricks";
email = "[email protected]";
github = "kylehendricks";
githubId = 981958;
};
kyleondy = {
email = "[email protected]";
github = "KyleOndy";
Expand Down
35 changes: 35 additions & 0 deletions pkgs/os-specific/linux/gasket/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, lib, fetchFromGitHub, kernel }:

stdenv.mkDerivation rec {
pname = "gasket";
version = "1.0-18";

src = fetchFromGitHub {
owner = "google";
repo = "gasket-driver";
rev = "97aeba584efd18983850c36dcf7384b0185284b3";
sha256 = "pJwrrI7jVKFts4+bl2xmPIAD01VKFta2SRuElerQnTo=";
};

makeFlags = [
"-C"
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"M=$(PWD)"
];
buildFlags = [ "modules" ];

installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
installTargets = [ "modules_install" ];

sourceRoot = "source/src";
hardeningDisable = [ "pic" "format" ];
nativeBuildInputs = kernel.moduleBuildDependencies;

meta = with lib; {
description = "The Coral Gasket Driver allows usage of the Coral EdgeTPU on Linux systems.";
homepage = "https://github.com/google/gasket-driver";
license = licenses.gpl2;
maintainers = [ lib.maintainers.kylehendricks ];
platforms = platforms.linux;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26362,6 +26362,10 @@ with pkgs;

fwts = callPackage ../os-specific/linux/fwts { };

gasket = callPackage ../os-specific/linux/gasket {
inherit (linuxPackages) kernel;
};

gobi_loader = callPackage ../os-specific/linux/gobi_loader { };

libossp_uuid = callPackage ../development/libraries/libossp-uuid { };
Expand Down

0 comments on commit c05b69b

Please sign in to comment.