2016-08-12 04:31:04 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libnfc, openssl
|
|
|
|
, libobjc ? null }:
|
2014-09-07 15:23:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libfreefare-${version}";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://libfreefare.googlecode.com/files/libfreefare-0.4.0.tar.bz2";
|
|
|
|
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
|
|
|
|
};
|
|
|
|
|
2016-08-12 04:31:04 +01:00
|
|
|
buildInputs = [ pkgconfig libnfc openssl ] ++ stdenv.lib.optional stdenv.isDarwin libobjc;
|
2014-09-07 15:23:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = http://code.google.com/p/libfreefare/;
|
|
|
|
maintainers = with maintainers; [bobvanderlinden];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.unix;
|
2014-09-07 15:23:23 +01:00
|
|
|
};
|
|
|
|
}
|