depot/pkgs/development/tools/jfmt/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

24 lines
690 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-u/v3P7iPdBJU/0wlSNBq/cjnM3XOnoVfUjrrmo4sTAA=";
meta = with lib; {
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 = licenses.mit;
maintainers = [ maintainers.psibi ];
};
}