mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
38 lines
874 B
Nix
38 lines
874 B
Nix
{ 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 ];
|
|
};
|
|
}
|