proxmark3: add gd optional dependency

This commit is contained in:
Emily Trau 2024-03-07 12:48:33 +11:00
parent 38260f877c
commit 29423a5d70

View File

@ -7,6 +7,7 @@
, bzip2
, openssl
, jansson
, gd
, whereami
, lua
, lz4
@ -23,14 +24,14 @@
, standalone ? "LF_SAMYRUN"
}:
assert withBlueshark -> stdenv.hostPlatform.isLinux;
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "proxmark3";
version = "4.18218";
src = fetchFromGitHub {
owner = "RfidResearchGroup";
repo = "proxmark3";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-LltTTmYEF1JsqkVaj7Z19qGR+dEUj6Hwr6T5Z1eDzZc=";
};
@ -59,6 +60,7 @@ stdenv.mkDerivation rec {
bzip2
openssl
jansson
gd
lz4
whereami
lua
@ -84,5 +86,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ nyanotech emilytrau ];
platforms = platforms.unix;
mainProgram = "pm3";
};
}
})