uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/tools/security/proxmark3/proxmark3-rrg.nix
Normal file
38
pkgs/tools/security/proxmark3/proxmark3-rrg.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
|
||||
, readline
|
||||
|
||||
, hardwarePlatform ? "PM3RDV4"
|
||||
|
||||
, hardwarePlatformExtras ? "" }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "proxmark3-rrg";
|
||||
version = "4.14831";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RfidResearchGroup";
|
||||
repo = "proxmark3";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-s0D04V6vlGW7SVkJwzMKaVfXQoT3Wi0lu7RC61Es89A=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue