libnfc-nci: init at 2.4.1-unstable
This commit is contained in:
parent
a02b183b85
commit
0d67f93d7e
47
pkgs/by-name/li/libnfc-nci/package.nix
Normal file
47
pkgs/by-name/li/libnfc-nci/package.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user