2021-03-09 03:18:52 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
|
2021-02-05 17:12:51 +00:00
|
|
|
, readline
|
|
|
|
|
|
|
|
, hardwarePlatform ? "PM3RDV4"
|
|
|
|
|
|
|
|
, hardwarePlatformExtras ? "" }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "proxmark3-rrg";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "4.16191";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RfidResearchGroup";
|
|
|
|
repo = "proxmark3";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-l0aDp0s9ekUUHqkzGfVoSIf/4/GN2uiVGL/+QtKRCOs=";
|
2021-02-05 17:12:51 +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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client for proxmark3, powerful general purpose RFID tool";
|
|
|
|
homepage = "https://rfidresearchgroup.com/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ nyanotech ];
|
|
|
|
};
|
|
|
|
}
|