From 697d2eca3346fef51776f4c6090b860942ec39f6 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 19 Jul 2026 11:02:35 +0200 Subject: [PATCH] pedantix: init at 1.0.0 --- pkgs/by-name/pe/pedantix/package.nix | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/pe/pedantix/package.nix diff --git a/pkgs/by-name/pe/pedantix/package.nix b/pkgs/by-name/pe/pedantix/package.nix new file mode 100644 index 000000000000..ad69aa088bc2 --- /dev/null +++ b/pkgs/by-name/pe/pedantix/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "pedantix"; + version = "1.0.0"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Swarsel"; + repo = "pedantix"; + tag = "v${finalAttrs.version}"; + hash = "sha256-ibouDGnFOfkeUvM9oOL+0a9T93jSKqUfWCGY8CfpkTg="; + }; + + cargoHash = "sha256-PwmWZEPQFknvBnK/Rtt9gl4wWq8c6hjfrcMfbhqldKw="; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "The pedantic nix formatter"; + homepage = "https://github.com/Swarsel/pedantix"; + changelog = "https://github.com/Swarsel/pedantix/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ swarsel ]; + mainProgram = "pedantix"; + }; +})