2024-07-27 06:49:29 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jf";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.6.2";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sayanarijit";
|
|
|
|
repo = "jf";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-A29OvGdG6PyeKMf5RarEOrfnNSmXhXri0AlECHWep6M=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-jZmFUvg6R15oL13OYKkirsepoJwOKCeXdKMcqhPEhNU=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
# skip auto manpage update
|
|
|
|
buildNoDefaultFeatures = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage assets/jf.1
|
|
|
|
'';
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Small utility to safely format and print JSON objects in the commandline";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jf";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/sayanarijit/jf";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sayanarijit ];
|
|
|
|
};
|
|
|
|
}
|