1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/os-specific/linux/hid-tmff2/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

37 lines
1.1 KiB
Nix

{ stdenv, lib, fetchFromGitHub, kernel }:
stdenv.mkDerivation {
pname = "hid-tmff2";
# https://github.com/Kimplul/hid-tmff2/blob/ca168637fbfb085ebc9ade0c47fa0653dac5d25b/dkms/dkms-install.sh#L12
version = "0.81";
src = fetchFromGitHub {
owner = "Kimplul";
repo = "hid-tmff2";
rev = "ca168637fbfb085ebc9ade0c47fa0653dac5d25b";
hash = "sha256-Nm5m5xjwJGy+ia4nTkvPZynIxUj6MVGGbSNmIcIpziM=";
# For hid-tminit. Source: https://github.com/scarburato/hid-tminit
fetchSubmodules = true;
};
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
installFlags = [
"INSTALL_MOD_PATH=${placeholder "out"}"
];
postPatch = "sed -i '/depmod -A/d' Makefile";
meta = with lib; {
description = "Linux kernel module for Thrustmaster T300RS, T248 and TX(experimental)";
homepage = "https://github.com/Kimplul/hid-tmff2";
license = licenses.gpl2Plus;
maintainers = [ maintainers.rayslash ];
platforms = platforms.linux;
};
}