2022-03-10 10:48:59 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }:
|
2022-02-09 23:03:04 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jless";
|
2022-03-10 10:48:59 +00:00
|
|
|
version = "0.8.0";
|
2022-02-09 23:03:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PaulJuliusMartinez";
|
|
|
|
repo = "jless";
|
|
|
|
rev = "v${version}";
|
2022-03-10 10:48:59 +00:00
|
|
|
sha256 = "sha256-NB/s29M46mVhTsJWFYnBgJjSjUVbfdmuz69VdpVuR7c=";
|
2022-02-09 23:03:04 +00:00
|
|
|
};
|
|
|
|
|
2022-03-10 10:48:59 +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-09 23:03:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line pager for JSON data";
|
2022-03-10 10:48:59 +00:00
|
|
|
homepage = "https://jless.io";
|
2022-02-09 23:03:04 +00:00
|
|
|
license = licenses.mit;
|
2022-06-25 21:47:36 +00:00
|
|
|
maintainers = with maintainers; [ jfchevrette ];
|
2022-02-09 23:03:04 +00:00
|
|
|
};
|
|
|
|
}
|