package.nix (867B)
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.2"; 14 15 __structuredAttrs = true; 16 17 src = fetchFromGitHub { 18 owner = "ArthurSonzogni"; 19 repo = "json-tui"; 20 tag = "v${finalAttrs.version}"; 21 hash = "sha256-PXiTlTwF/qL/Nq1PSf8PHgKa0MD6QrA0tSWiFfm93Gk="; 22 }; 23 24 patches = [ ./no-deps.patch ]; 25 26 nativeBuildInputs = [ cmake ]; 27 28 buildInputs = [ 29 ftxui 30 nlohmann_json 31 libargs 32 ]; 33 34 env.NIX_CFLAGS_COMPILE = "-fexceptions"; 35 36 meta = { 37 description = "A JSON terminal UI made in C++"; 38 homepage = "https://github.com/ArthurSonzogni/json-tui"; 39 license = lib.licenses.mit; 40 maintainers = [ lib.maintainers.sikmir ]; 41 platforms = lib.platforms.unix; 42 broken = lib.versionOlder nlohmann_json.version "3.12.0"; 43 }; 44 })
