2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libnfc, openssl
|
2016-08-11 20:31:04 -07:00
|
|
|
, libobjc ? null }:
|
2014-09-07 07:23:23 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libfreefare";
|
2014-09-07 07:23:23 -07:00
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-26 16:44:19 -07:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libfreefare/libfreefare-0.4.0.tar.bz2";
|
2014-09-07 07:23:23 -07:00
|
|
|
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
|
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-21 09:00:13 -08:00
|
|
|
buildInputs = [ libnfc openssl ] ++ lib.optional stdenv.isDarwin libobjc;
|
2014-09-07 07:23:23 -07:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2014-09-07 07:23:23 -07:00
|
|
|
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
2017-10-26 16:44:19 -07:00
|
|
|
license = licenses.lgpl3;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/nfc-tools/libfreefare";
|
2014-09-07 07:23:23 -07:00
|
|
|
maintainers = with maintainers; [bobvanderlinden];
|
2015-11-17 12:29:29 -08:00
|
|
|
platforms = platforms.unix;
|
2014-09-07 07:23:23 -07:00
|
|
|
};
|
|
|
|
}
|