default.nix (592B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "arduinojson"; 10 version = "6.20.0"; 11 12 src = fetchFromGitHub { 13 owner = "bblanchon"; 14 repo = "ArduinoJson"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-oRqQMc4FpX7bxVDfZhO6ZvwrWEAlY2T4tejIRfklTrs="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 meta = { 22 description = "JSON library for Arduino and embedded C++"; 23 homepage = "https://arduinojson.org/"; 24 license = lib.licenses.mit; 25 maintainers = [ lib.maintainers.sikmir ]; 26 platforms = lib.platforms.unix; 27 }; 28 })