mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
31 lines
907 B
Nix
31 lines
907 B
Nix
{ lib, fetchFromGitHub, rustPlatform, stdenv, python3, AppKit, libxcb }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "jless";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PaulJuliusMartinez";
|
|
repo = "jless";
|
|
rev = "v${version}";
|
|
hash = "sha256-76oFPUWROX389U8DeMjle/GkdItu+0eYxZkt1c6l0V4=";
|
|
};
|
|
|
|
cargoHash = "sha256-sas94liAOSIirIJGdexdApXic2gWIBDT4uJFRM3qMw0=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ python3 ];
|
|
|
|
buildInputs = [ ]
|
|
++ lib.optionals stdenv.isDarwin [ AppKit ]
|
|
++ lib.optionals stdenv.isLinux [ libxcb ];
|
|
|
|
meta = with lib; {
|
|
description = "A command-line pager for JSON data";
|
|
mainProgram = "jless";
|
|
homepage = "https://jless.io";
|
|
changelog = "https://github.com/PaulJuliusMartinez/jless/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda jfchevrette ];
|
|
};
|
|
}
|