diff --git a/pkgs/by-name/sc/schemat/package.nix b/pkgs/by-name/sc/schemat/package.nix new file mode 100644 index 000000000000..4d100a6e2b48 --- /dev/null +++ b/pkgs/by-name/sc/schemat/package.nix @@ -0,0 +1,35 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "schemat"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "raviqqe"; + repo = "schemat"; + tag = "v${finalAttrs.version}"; + hash = "sha256-LFUXohgQQObuyXv0dVzaok922x0G6zd2vqxDvJU506U="; + }; + + cargoHash = "sha256-YdeeFYETvgWQFkjERRaP3NsqBNLdtWqo67spxrhuYDk="; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Code formatter for Scheme, Lisp, and any S-expressions"; + homepage = "https://github.com/raviqqe/schemat"; + changelog = "https://github.com/raviqqe/schemat/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ bddvlpr ]; + mainProgram = "schemat"; + }; +})