mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
39 lines
951 B
Nix
39 lines
951 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "json-sort";
|
|
version = "1.1.5";
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "drupol";
|
|
repo = "json-sort";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-Xs1dMtPUmunkExQQ6IRmfFNz/3hVbARdtAL6K2Ur0ZQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-RrNgmQ5v5zCKz/XaaLub16URmurQxfYTeNxy6UswFYY=";
|
|
|
|
dontUseCargoParallelTests = true;
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Command-line tool to sort JSON object keys in-place, preserving formatting and comments";
|
|
homepage = "https://github.com/drupol/json-sort";
|
|
license = lib.licenses.eupl12;
|
|
mainProgram = "json-sort";
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|