1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libnfc, xz }:
2
3stdenv.mkDerivation rec {
4 pname = "mfoc-hardnested";
5 version = "unstable-2021-08-14";
6
7 src = fetchFromGitHub {
8 owner = "nfc-tools";
9 repo = pname;
10 rev = "2c25bf05a0b13827b9d06382c5d384b2e5c88238";
11 hash = "sha256-fhfevQCw0E5TorHx61Vltpmv7DAjgH73i27O7aBKxz4=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ libnfc xz ];
16
17 meta = with lib; {
18 description = "A fork of mfoc integrating hardnested code from the proxmark";
19 license = licenses.gpl2;
20 homepage = "https://github.com/nfc-tools/mfoc-hardnested";
21 maintainers = with maintainers; [ azuwis ];
22 platforms = platforms.unix;
23 broken = (stdenv.isDarwin && stdenv.isAarch64); # Undefined symbols "_memalign" referenced
24 };
25}