2022-03-10 19:12:11 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }:
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jless";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.8.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PaulJuliusMartinez";
|
|
|
|
repo = "jless";
|
|
|
|
rev = "v${version}";
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "sha256-NB/s29M46mVhTsJWFYnBgJjSjUVbfdmuz69VdpVuR7c=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
cargoSha256 = "sha256-cPj9cTRhWK/YU8Cae63p4Vm5ohB1IfGL5fu7yyFGSXA=";
|
|
|
|
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ python3 ];
|
|
|
|
|
|
|
|
buildInputs = [ ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ AppKit ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ libxcb ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line pager for JSON data";
|
2022-03-10 19:12:11 +00:00
|
|
|
homepage = "https://jless.io";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.mit;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ jfchevrette zowoq ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|