default.nix (652B)
1 { lib, stdenv, fetchFromGitHub, cmake, ftxui, nlohmann_json, libargs }: 2 3 stdenv.mkDerivation rec { 4 pname = "json-tui"; 5 version = "1.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "ArthurSonzogni"; 9 repo = "json-tui"; 10 rev = "v${version}"; 11 hash = "sha256-Rgan+Pki4kOFf4BiNmJV4mf/rgyIGgUVP1BcFCKG25w="; 12 }; 13 14 patches = [ ./no-deps.patch ]; 15 16 nativeBuildInputs = [ cmake ]; 17 18 buildInputs = [ ftxui nlohmann_json libargs ]; 19 20 meta = with lib; { 21 description = "A JSON terminal UI made in C++"; 22 inherit (src.meta) homepage; 23 license = licenses.mit; 24 maintainers = [ maintainers.sikmir ]; 25 platforms = platforms.unix; 26 }; 27 }