depot/third_party/nixpkgs/pkgs/development/tools/jf/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
818 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "jf";
version = "0.6.2";
src = fetchFromGitHub {
owner = "sayanarijit";
repo = "jf";
rev = "v${version}";
hash = "sha256-A29OvGdG6PyeKMf5RarEOrfnNSmXhXri0AlECHWep6M=";
};
cargoHash = "sha256-jZmFUvg6R15oL13OYKkirsepoJwOKCeXdKMcqhPEhNU=";
nativeBuildInputs = [ installShellFiles ];
# skip auto manpage update
buildNoDefaultFeatures = true;
postInstall = ''
installManPage assets/jf.1
'';
meta = with lib; {
description = "Small utility to safely format and print JSON objects in the commandline";
mainProgram = "jf";
homepage = "https://github.com/sayanarijit/jf";
license = licenses.mit;
maintainers = [ maintainers.sayanarijit ];
};
}