2021-03-04 12:54:50 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
|
2021-01-23 13:58:20 +00:00
|
|
|
, readline
|
|
|
|
|
|
|
|
, hardwarePlatform ? "PM3RDV4"
|
|
|
|
|
|
|
|
, hardwarePlatformExtras ? "" }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "proxmark3-rrg";
|
2021-09-23 08:19:46 +00:00
|
|
|
version = "4.14434";
|
2021-01-23 13:58:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RfidResearchGroup";
|
|
|
|
repo = "proxmark3";
|
|
|
|
rev = "v${version}";
|
2021-09-23 08:19:46 +00:00
|
|
|
sha256 = "sha256-QscV/RxycpU8ypP1Pv6eKtQrOVC+oikass4tvxUszMI=";
|
2021-01-23 13:58:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config gcc-arm-embedded ];
|
|
|
|
buildInputs = [ bluez5 readline ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PLATFORM=${hardwarePlatform}"
|
|
|
|
"PLATFORM_EXTRAS=${hardwarePlatformExtras}"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin client/proxmark3
|
|
|
|
install -Dt $out/firmware bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
|
|
|
|
'';
|
|
|
|
|
2021-01-27 05:59:00 +00:00
|
|
|
meta = with lib; {
|
2021-01-23 13:58:20 +00:00
|
|
|
description = "Client for proxmark3, powerful general purpose RFID tool";
|
|
|
|
homepage = "https://rfidresearchgroup.com/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ nyanotech ];
|
|
|
|
};
|
|
|
|
}
|