summary refs log tree commit diff
path: root/pkgs/tools/security/proxmark3
diff options
context:
space:
mode:
authornyanotech <nyanotechnology@gmail.com>2021-01-23 13:58:20 +0000
committernyanotech <nyanotechnology@gmail.com>2021-01-23 20:31:03 +0000
commitd935afe655831c56321d48a22b037ecaabaf5d06 (patch)
tree27729623b7d164f7b2789ca3099b2c3468ea06dd /pkgs/tools/security/proxmark3
parent6a6867342ffa51389f822d0351e75e08f5cfc0e3 (diff)
downloadnixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.tar
nixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.tar.gz
nixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.tar.bz2
nixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.tar.lz
nixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.tar.xz
nixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.tar.zst
nixpkgs-d935afe655831c56321d48a22b037ecaabaf5d06.zip
proxmark3-rrg: Initial commit
The rfidresearchgroup fork is a significant fork from the upstream, and
the build steps are more than a bit different, which is why I did this
in a new file.

Also, add myself to the maintainers list
Diffstat (limited to 'pkgs/tools/security/proxmark3')
-rw-r--r--pkgs/tools/security/proxmark3/proxmark3-rrg.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/security/proxmark3/proxmark3-rrg.nix b/pkgs/tools/security/proxmark3/proxmark3-rrg.nix
new file mode 100644
index 00000000000..bf1bcd67d11
--- /dev/null
+++ b/pkgs/tools/security/proxmark3/proxmark3-rrg.nix
@@ -0,0 +1,38 @@
+{ stdenv, mkDerivation, fetchFromGitHub, pkg-config, gcc-arm-embedded, bluez5
+, readline
+
+, hardwarePlatform ? "PM3RDV4"
+
+, hardwarePlatformExtras ? "" }:
+
+mkDerivation rec {
+  pname = "proxmark3-rrg";
+  version = "4.9237";
+
+  src = fetchFromGitHub {
+    owner = "RfidResearchGroup";
+    repo = "proxmark3";
+    rev = "v${version}";
+    sha256 = "13xrhvrsm73rfgqpgca6a37c3jixdkxvfggmacnnx5fdfb393bfx";
+  };
+
+  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 stdenv.lib; {
+    description = "Client for proxmark3, powerful general purpose RFID tool";
+    homepage = "https://rfidresearchgroup.com/";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ nyanotech ];
+  };
+}