diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2019-04-06 14:51:22 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2019-04-06 15:00:18 +0200 |
commit | 4a985a67c51f04741e2445fcd8b0b8c1ccb778eb (patch) | |
tree | bf3ad2bec3a1ca6ad383400af6cbe85fcf822c81 /pkgs/tools/security/proxmark3 | |
parent | 1520bed20baeff2bd96250fde9cc5c7ffabba885 (diff) | |
download | nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.tar nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.tar.gz nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.tar.bz2 nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.tar.lz nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.tar.xz nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.tar.zst nixpkgs-4a985a67c51f04741e2445fcd8b0b8c1ccb778eb.zip |
proxmark3: init at 3.1.0
Diffstat (limited to 'pkgs/tools/security/proxmark3')
-rw-r--r-- | pkgs/tools/security/proxmark3/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/security/proxmark3/default.nix b/pkgs/tools/security/proxmark3/default.nix new file mode 100644 index 00000000000..afaed796057 --- /dev/null +++ b/pkgs/tools/security/proxmark3/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, pkgconfig, ncurses, readline }: + +stdenv.mkDerivation rec { + pname = "proxmark3"; + version = "3.1.0"; + + src = fetchFromGitHub { + owner = "Proxmark"; + repo = pname; + rev = "v${version}"; + sha256 = "1qw28n1bhhl91ix77lv50qcr919fq3hjc8zhhqphwxal2svgx2jf"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ ncurses readline ]; + + postPatch = '' + substituteInPlace client/Makefile --replace '-ltermcap' ' ' + substituteInPlace liblua/Makefile --replace '-ltermcap' ' ' + ''; + + preBuild = '' + cd client + ''; + + installPhase = '' + mkdir -p $out/bin + cp proxmark3 $out/bin + ''; + + meta = with stdenv.lib; { + description = "Client for proxmark3, powerful general purpose RFID tool"; + homepage = http://www.proxmark.org; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ fpletz ]; + }; +} |