about summary refs log tree commit diff
path: root/pkgs/tools/security/mfoc/default.nix
blob: 278818e88b54ce54be01417330b5aa3ab41e7f73 (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
{ stdenv, fetchurl, pkgconfig, libnfc }:

stdenv.mkDerivation rec {
  name = "mfoc-${version}";
  version = "0.10.6";

  src = fetchurl {
    url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mfoc/${name}.tar.gz";
    sha1 = "3adce3029dce9124ff3bc7d0fad86fa0c374a9e3";
  };

  patches = [./mf_mini.patch];

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libnfc ];

  meta = with stdenv.lib; {
    description = "Mifare Classic Offline Cracker";
    license = licenses.gpl2;
    homepage = https://github.com/nfc-tools/mfoc;
    maintainers = with maintainers; [ offline ];
    platforms = platforms.unix;
  };
}