mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
39 lines
990 B
Nix
39 lines
990 B
Nix
{ lib, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
|
|
, readline
|
|
|
|
, hardwarePlatform ? "PM3RDV4"
|
|
|
|
, hardwarePlatformExtras ? "" }:
|
|
|
|
mkDerivation rec {
|
|
pname = "proxmark3-rrg";
|
|
version = "4.14434";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RfidResearchGroup";
|
|
repo = "proxmark3";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QscV/RxycpU8ypP1Pv6eKtQrOVC+oikass4tvxUszMI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|