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

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

32 lines
796 B
Nix
Raw Normal View History

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