linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libfreefare / default.nix
blob9fd8c1e6b6131ad324cf8a4beea6446010b84ec4
1 { lib, stdenv, fetchurl, pkg-config, libnfc, openssl
2 , libobjc ? null }:
4 stdenv.mkDerivation {
5   pname = "libfreefare";
6   version = "0.4.0";
8   src = fetchurl {
9     url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libfreefare/libfreefare-0.4.0.tar.bz2";
10     sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
11   };
13   nativeBuildInputs = [ pkg-config ];
14   buildInputs = [ libnfc openssl ] ++ lib.optional stdenv.isDarwin libobjc;
16   meta = with lib; {
17     description = "The libfreefare project aims to provide a convenient API for MIFARE card manipulations";
18     license = licenses.lgpl3;
19     homepage = "https://github.com/nfc-tools/libfreefare";
20     maintainers = with maintainers; [bobvanderlinden];
21     platforms = platforms.unix;
22   };