default.nix (732B)
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.3.0"; 14 15 src = fetchFromGitHub { 16 owner = "ArthurSonzogni"; 17 repo = "json-tui"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-Rgan+Pki4kOFf4BiNmJV4mf/rgyIGgUVP1BcFCKG25w="; 20 }; 21 22 patches = [ ./no-deps.patch ]; 23 24 nativeBuildInputs = [ cmake ]; 25 26 buildInputs = [ 27 ftxui 28 nlohmann_json 29 libargs 30 ]; 31 32 meta = { 33 description = "A JSON terminal UI made in C++"; 34 homepage = "https://github.com/ArthurSonzogni/json-tui"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.sikmir ]; 37 platforms = lib.platforms.unix; 38 }; 39 })