about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/mf/mfoc-hardnested/package.nix
blob: 672db4d21c1a0b970aceced149ab4ce67cfcd1ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libnfc
, xz
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "mfoc-hardnested";
  version = "unstable-2023-03-27";

  src = fetchFromGitHub {
    owner = "nfc-tools";
    repo = finalAttrs.pname;
    rev = "a6007437405a0f18642a4bbca2eeba67c623d736";
    hash = "sha256-YcUMS4wx5ML4yYiARyfm7T7nLomgG9YCSFj+ZUg5XZk=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    libnfc
    xz
  ];

  meta = with lib; {
    description = "A fork of mfoc integrating hardnested code from the proxmark";
    mainProgram = "mfoc-hardnested";
    license = licenses.gpl2;
    homepage = "https://github.com/nfc-tools/mfoc-hardnested";
    maintainers = with maintainers; [ azuwis ];
    platforms = platforms.unix;
  };
})