1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "jfmt";
5 version = "1.2.1";
6
7 src = fetchFromGitHub {
8 owner = "scruffystuffs";
9 repo = "${pname}.rs";
10 rev = "v${version}";
11 hash = "sha256-X3wk669G07BTPAT5xGbAfIu2Qk90aaJIi1CLmOnSG80=";
12 };
13
14 cargoHash = "sha256-u/v3P7iPdBJU/0wlSNBq/cjnM3XOnoVfUjrrmo4sTAA=";
15
16 meta = with lib; {
17 description = "CLI utility to format json files";
18 homepage = "https://github.com/scruffystuffs/jfmt.rs";
19 changelog = "https://github.com/scruffystuffs/jfmt.rs/blob/${version}/CHANGELOG.md";
20 license = licenses.mit;
21 maintainers = [ maintainers.psibi ];
22 };
23}