Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / jfmt / default.nix
blob45a18edfffbef0c838eedd1d59fce14d1eac27bf
1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "jfmt";
5   version = "1.2.1";
7   src = fetchFromGitHub {
8     owner = "scruffystuffs";
9     repo = "${pname}.rs";
10     rev = "v${version}";
11     hash = "sha256-X3wk669G07BTPAT5xGbAfIu2Qk90aaJIi1CLmOnSG80=";
12   };
14   cargoHash = "sha256-u/v3P7iPdBJU/0wlSNBq/cjnM3XOnoVfUjrrmo4sTAA=";
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   };