Files
nixpkgs/pkgs/by-name/li/libnfc-nci/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
946 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
config,
debug ? config.libnfc-nci.debug or false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libnfc-nci";
version = "2.4.1-unstable-2024-08-05";
src = fetchFromGitHub {
owner = "StarGate01";
repo = "linux_libnfc-nci";
rev = "7ce9c8aad0e37850a49b6d8dcc22ae5c783268e7";
sha256 = "sha256-iSvDiae+A2hUok426Lj5TMn3Q9G+vH1G0jajP48PehQ=";
};
buildInputs = [
pkg-config
autoreconfHook
];
configureFlags = [
"--enable-i2c"
]
++ lib.optionals debug [
"--enable-debug"
];
dontStrip = debug;
postInstall = ''
rm -rf $out/etc
'';
meta = {
description = "Linux NFC stack for NCI based NXP NFC Controllers";
homepage = "https://github.com/NXPNFCLinux/linux_libnfc-nci";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ stargate01 ];
platforms = lib.platforms.linux;
};
})