Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
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 = [ udevCheckHook ] ++ 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}"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
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;
|
|
};
|
|
})
|