2014-09-24 10:20:47 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libnfc }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mfoc-${version}";
|
|
|
|
version = "0.10.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-27 00:44:19 +01:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mfoc/${name}.tar.gz";
|
2014-09-24 10:20:47 +01:00
|
|
|
sha1 = "3adce3029dce9124ff3bc7d0fad86fa0c374a9e3";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [./mf_mini.patch];
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libnfc ];
|
2014-09-24 10:20:47 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mifare Classic Offline Cracker";
|
|
|
|
license = licenses.gpl2;
|
2017-10-27 00:44:19 +01:00
|
|
|
homepage = https://github.com/nfc-tools/mfoc;
|
2014-09-24 10:20:47 +01:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.unix;
|
2014-09-24 10:20:47 +01:00
|
|
|
};
|
|
|
|
}
|