nixpkgs/pkgs/by-name/jf/jfmt/package.nix
2025-07-26 11:39:35 +02:00

29 lines
695 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "jfmt";
version = "1.2.1";
src = fetchFromGitHub {
owner = "scruffystuffs";
repo = "${pname}.rs";
rev = "v${version}";
hash = "sha256-X3wk669G07BTPAT5xGbAfIu2Qk90aaJIi1CLmOnSG80=";
};
cargoHash = "sha256-skLK+jYeR0FPxD1fVswiOWyKpzu5/qL5mk69bLEmxic=";
meta = {
description = "CLI utility to format json files";
mainProgram = "jfmt";
homepage = "https://github.com/scruffystuffs/jfmt.rs";
changelog = "https://github.com/scruffystuffs/jfmt.rs/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.psibi ];
};
}