mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
25 lines
690 B
Nix
25 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 ];
|
|
};
|
|
}
|