commit 6f0defb04c4b469bc287656c3d12a6fd9ad1303a
parent a4d95df695aad7ea154521176bcaedcd5a7974cb
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 5 Feb 2023 14:13:36 +0300
Add arduinojson
Diffstat:
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -293,6 +293,7 @@ lib.makeScope newScope (
aamath = callPackage ./misc/aamath { };
apibackuper = callPackage ./misc/apibackuper { };
+ arduinojson = callPackage ./misc/arduinojson { };
ascii-dash = callPackage ./misc/ascii-dash { };
blink = callPackage ./misc/blink { };
btpd = callPackage ./misc/btpd { };
diff --git a/pkgs/misc/arduinojson/default.nix b/pkgs/misc/arduinojson/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation rec {
+ pname = "arduinojson";
+ version = "6.20.0";
+
+ src = fetchFromGitHub {
+ owner = "bblanchon";
+ repo = "ArduinoJson";
+ rev = "v${version}";
+ hash = "sha256-oRqQMc4FpX7bxVDfZhO6ZvwrWEAlY2T4tejIRfklTrs=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ meta = with lib; {
+ description = "JSON library for Arduino and embedded C++";
+ homepage = "https://arduinojson.org/";
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}