2022-02-11 07:14:59 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jfmt";
|
2022-12-01 19:46:37 +00:00
|
|
|
version = "1.2.1";
|
2022-02-11 07:14:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scruffystuffs";
|
|
|
|
repo = "${pname}.rs";
|
2022-12-01 19:46:37 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-X3wk669G07BTPAT5xGbAfIu2Qk90aaJIi1CLmOnSG80=";
|
2022-02-11 07:14:59 +00:00
|
|
|
};
|
|
|
|
|
2022-12-01 19:46:37 +00:00
|
|
|
cargoHash = "sha256-u/v3P7iPdBJU/0wlSNBq/cjnM3XOnoVfUjrrmo4sTAA=";
|
2022-02-11 07:14:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI utility to format json files";
|
|
|
|
homepage = "https://github.com/scruffystuffs/jfmt.rs";
|
2022-12-01 19:46:37 +00:00
|
|
|
changelog = "https://github.com/scruffystuffs/jfmt.rs/blob/${version}/CHANGELOG.md";
|
2022-02-11 07:14:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.psibi ];
|
|
|
|
};
|
|
|
|
}
|