linuxPackages.nxp-pn5xx: init at 0.4-unstable
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
kernel,
|
||||
kernelModuleMakeFlags,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "nxp-pn5xx";
|
||||
version = "0.4-unstable-2025-02-08-${kernel.version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jr64";
|
||||
repo = "nxp-pn5xx";
|
||||
rev = "07411e0ce3445e7dcb970df1837f0ad74b7b0a7a";
|
||||
hash = "sha256-jVkcvURFlihKW2vFvAaqzKdtexPXywRa2LkPkIhmdeU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = kernelModuleMakeFlags ++ [
|
||||
"KERNELRELEASE=${kernel.modDirVersion}"
|
||||
"BUILD_KERNEL_PATH=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"INSTALL_MOD_PATH=$(out)/lib/modules/${kernel.modDirVersion}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
echo 'SUBSYSTEM=="misc", KERNEL=="pn544", MODE="0666", GROUP="dialout"' > $out/etc/udev/rules.d/99-nxp-pn5xx.rules
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "NXP's NFC Open Source Kernel mode driver with ACPI configuration support";
|
||||
homepage = "https://github.com/jr64/nxp-pn5xx";
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ stargate01 ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
@@ -457,6 +457,8 @@ in {
|
||||
nvidia_x11_stable_open = nvidiaPackages.stable.open;
|
||||
nvidia_x11_vulkan_beta_open = nvidiaPackages.vulkan_beta.open;
|
||||
|
||||
nxp-pn5xx = callPackage ../os-specific/linux/nxp-pn5xx { };
|
||||
|
||||
openrazer = callPackage ../os-specific/linux/openrazer/driver.nix { };
|
||||
|
||||
ply = callPackage ../os-specific/linux/ply { };
|
||||
|
||||
Reference in New Issue
Block a user