Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "jless"; 5 version = "0.8.0"; 6 7 src = fetchFromGitHub { 8 owner = "PaulJuliusMartinez"; 9 repo = "jless"; 10 rev = "v${version}"; 11 sha256 = "sha256-NB/s29M46mVhTsJWFYnBgJjSjUVbfdmuz69VdpVuR7c="; 12 }; 13 14 cargoSha256 = "sha256-cPj9cTRhWK/YU8Cae63p4Vm5ohB1IfGL5fu7yyFGSXA="; 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 = "A command-line pager for JSON data"; 24 homepage = "https://jless.io"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ jfchevrette ]; 27 }; 28}