json-sort: init at 0.1.1 (#510842)

This commit is contained in:
Pol Dellaiera
2026-04-17 14:43:11 +00:00
committed by GitHub
2 changed files with 40 additions and 1 deletions
@@ -1 +1 @@
{'dependencies': {'vim-addon-manager': {}}}
{"dependencies": {"vim-addon-manager": {}}}
+39
View File
@@ -0,0 +1,39 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "json-sort";
version = "0.1.1";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "drupol";
repo = "json-sort";
tag = finalAttrs.version;
hash = "sha256-U88bP1jVk5imwvSSxN16yaelzq1OhztgUA3MK4FbGnY=";
};
cargoHash = "sha256-jnuy00eE0/AaZXURjGRt7WPTLcVY4Hl45AuoR04gqRY=";
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;
};
})