2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libnfc }:
|
2014-09-24 10:20:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-28 16:32:00 +01:00
|
|
|
pname = "mfoc";
|
|
|
|
version = "0.10.7";
|
2014-09-24 10:20:47 +01:00
|
|
|
|
2019-04-28 16:32:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nfc-tools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0hbg1fn4000qdg1cfc7y8l0vh1mxlxcz7gapkcq54xp2l6kk1z65";
|
2014-09-24 10:20:47 +01:00
|
|
|
};
|
|
|
|
|
2019-04-28 16:32:00 +01: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 10:20:47 +01:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ libnfc ];
|
2014-09-24 10:20:47 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-09-24 10:20:47 +01:00
|
|
|
description = "Mifare Classic Offline Cracker";
|
|
|
|
license = licenses.gpl2;
|
2020-04-01 02:11:51 +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
|
|
|
};
|
|
|
|
}
|