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