3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/proxmark3/proxmark3-rrg.nix

39 lines
991 B
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
, readline
, hardwarePlatform ? "PM3RDV4"
, hardwarePlatformExtras ? "" }:
mkDerivation rec {
pname = "proxmark3-rrg";
2021-08-09 18:50:57 +01:00
version = "4.13441";
src = fetchFromGitHub {
owner = "RfidResearchGroup";
repo = "proxmark3";
rev = "v${version}";
2021-08-09 18:50:57 +01:00
sha256 = "1ffchqnm8023zcm4ywncf1j6076s78226h72m9dfmi0zbj3pbj4m";
};
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; {
description = "Client for proxmark3, powerful general purpose RFID tool";
homepage = "https://rfidresearchgroup.com/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nyanotech ];
};
}