Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 24 lines 690 B view raw
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 mainProgram = "jfmt"; 19 homepage = "https://github.com/scruffystuffs/jfmt.rs"; 20 changelog = "https://github.com/scruffystuffs/jfmt.rs/blob/${version}/CHANGELOG.md"; 21 license = licenses.mit; 22 maintainers = [ maintainers.psibi ]; 23 }; 24}