Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 30 lines 905 B view raw
1{ lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "jless"; 5 version = "0.9.0"; 6 7 src = fetchFromGitHub { 8 owner = "PaulJuliusMartinez"; 9 repo = "jless"; 10 rev = "v${version}"; 11 hash = "sha256-76oFPUWROX389U8DeMjle/GkdItu+0eYxZkt1c6l0V4="; 12 }; 13 14 cargoHash = "sha256-sas94liAOSIirIJGdexdApXic2gWIBDT4uJFRM3qMw0="; 15 16 nativeBuildInputs = lib.optionals stdenv.isLinux [ python3 ]; 17 18 buildInputs = [ ] 19 ++ lib.optionals stdenv.isDarwin [ AppKit ] 20 ++ lib.optionals stdenv.isLinux [ libxcb ]; 21 22 meta = with lib; { 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 ]; 29 }; 30}