From 56a0ea2486c081729d57e99535cb3fb624ef266a Mon Sep 17 00:00:00 2001 From: ELHart05 Date: Wed, 17 Jun 2026 01:28:59 +0100 Subject: [PATCH] syncpack: init at 15.3.2 --- pkgs/by-name/sy/syncpack/package.nix | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/sy/syncpack/package.nix diff --git a/pkgs/by-name/sy/syncpack/package.nix b/pkgs/by-name/sy/syncpack/package.nix new file mode 100644 index 000000000000..94e7c34c20c4 --- /dev/null +++ b/pkgs/by-name/sy/syncpack/package.nix @@ -0,0 +1,41 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "syncpack"; + version = "15.3.2"; + + src = fetchFromGitHub { + owner = "JamieMason"; + repo = "syncpack"; + tag = finalAttrs.version; + hash = "sha256-hpTVubKPuRtVxjaWetpFaK71UJXMAfOvWCZ4SqgOi0Y="; + }; + + cargoHash = "sha256-sjHyifhKU7FxwxrrAPuMwcUEw0lDGV83mOxXzLZul88="; + + __structuredAttrs = true; + + # This test asserts that a nested .gitignore excludes a build directory, but + # the `ignore` crate only applies gitignore rules inside a real git repository. + # The sandbox builds from a source tarball with no .git, so it is skipped here. + checkFlags = [ + "--skip=issue_334_nested_gitignore_excludes_build_directory" + ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + meta = { + description = "Consistent dependency versions in large JavaScript monorepos"; + homepage = "https://syncpack.dev"; + changelog = "https://github.com/JamieMason/syncpack/releases/tag/${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ELHart05 ]; + mainProgram = "syncpack"; + }; +})