nixpkgs/pkgs/development/tools/jless/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
784 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }:
2022-02-09 23:03:04 +00:00
rustPlatform.buildRustPackage rec {
pname = "jless";
version = "0.8.0";
2022-02-09 23:03:04 +00:00
src = fetchFromGitHub {
owner = "PaulJuliusMartinez";
repo = "jless";
rev = "v${version}";
sha256 = "sha256-NB/s29M46mVhTsJWFYnBgJjSjUVbfdmuz69VdpVuR7c=";
2022-02-09 23:03:04 +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";
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
};
}