2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libnfc }:
|
2014-09-24 11:20:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-28 17:32:00 +02:00
|
|
|
pname = "mfoc";
|
|
|
|
version = "0.10.7";
|
2014-09-24 11:20:47 +02:00
|
|
|
|
2019-04-28 17:32:00 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfc-tools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0hbg1fn4000qdg1cfc7y8l0vh1mxlxcz7gapkcq54xp2l6kk1z65";
|
2014-09-24 11:20:47 +02:00
|
|
|
};
|
|
|
|
|
2019-04-28 17:32:00 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nfc-tools/mfoc/commit/f13efb0a6deb1d97ba945d555a6a5d6be89b593f.patch";
|
|
|
|
sha256 = "109gqzp8rdsjvj0nra686vy0dpd2bl6q5v9m4v98cpxkbz496450";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nfc-tools/mfoc/commit/00eae36f891bc4580103e3b54f0bb5228af2cdef.patch";
|
|
|
|
sha256 = "1w56aj96g776f37j53jmf3hk21x4mqik3l2bmghrdp8drixc8bzk";
|
|
|
|
})
|
|
|
|
];
|
2014-09-24 11:20:47 +02:00
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ libnfc ];
|
2014-09-24 11:20:47 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-09-24 11:20:47 +02:00
|
|
|
description = "Mifare Classic Offline Cracker";
|
|
|
|
license = licenses.gpl2;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nfc-tools/mfoc";
|
2014-09-24 11:20:47 +02:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.unix;
|
2014-09-24 11:20:47 +02:00
|
|
|
};
|
|
|
|
}
|