package.nix (823B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 ftxui, 7 nlohmann_json, 8 libargs, 9 }: 10 11 stdenv.mkDerivation (finalAttrs: { 12 pname = "json-tui"; 13 version = "1.4.1"; 14 15 __structuredAttrs = true; 16 17 src = fetchFromGitHub { 18 owner = "ArthurSonzogni"; 19 repo = "json-tui"; 20 tag = "v${finalAttrs.version}"; 21 hash = "sha256-qS2EbCxH8sUUJMu5hwm1+Nu6SsJRfLReX56YSd1RZU4="; 22 }; 23 24 patches = [ ./no-deps.patch ]; 25 26 nativeBuildInputs = [ cmake ]; 27 28 buildInputs = [ 29 ftxui 30 nlohmann_json 31 libargs 32 ]; 33 34 meta = { 35 description = "A JSON terminal UI made in C++"; 36 homepage = "https://github.com/ArthurSonzogni/json-tui"; 37 license = lib.licenses.mit; 38 maintainers = [ lib.maintainers.sikmir ]; 39 platforms = lib.platforms.unix; 40 broken = lib.versionOlder nlohmann_json.version "3.12.0"; 41 }; 42 })
