2023-01-11 07:51:40 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libnfc, openssl
|
2022-10-21 18:38:19 +00:00
|
|
|
, libobjc ? null
|
|
|
|
, IOKit, Security
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libfreefare";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libfreefare/libfreefare-0.4.0.tar.bz2";
|
|
|
|
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
|
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = [ libnfc openssl ] ++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
homepage = "https://github.com/nfc-tools/libfreefare";
|
|
|
|
maintainers = with maintainers; [bobvanderlinden];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|