mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00

nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
33 lines
818 B
Nix
33 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 ];
|
|
};
|
|
}
|