1 { lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
8 owner = "PaulJuliusMartinez";
11 hash = "sha256-76oFPUWROX389U8DeMjle/GkdItu+0eYxZkt1c6l0V4=";
14 cargoHash = "sha256-sas94liAOSIirIJGdexdApXic2gWIBDT4uJFRM3qMw0=";
16 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ python3 ];
19 ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ]
20 ++ lib.optionals stdenv.hostPlatform.isLinux [ libxcb ];
23 description = "Command-line pager for JSON data";
24 mainProgram = "jless";
25 homepage = "https://jless.io";
26 changelog = "https://github.com/PaulJuliusMartinez/jless/blob/${src.rev}/CHANGELOG.md";
27 license = licenses.mit;
28 maintainers = with maintainers; [ figsoda jfchevrette ];