Files
nixpkgs/pkgs/by-name/sy/syncpack/package.nix
2026-08-09 12:56:33 +00:00

42 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "syncpack";
version = "15.3.3";
src = fetchFromGitHub {
owner = "JamieMason";
repo = "syncpack";
tag = finalAttrs.version;
hash = "sha256-njA6NMIoY38Ej/ymZIVcCVVkM+tPFrDmXWXrDXlYUdw=";
};
cargoHash = "sha256-phBgKoFHyqXRwf+aTuy/cwiBr1rKuERFrXuWJQKl7+4=";
__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";
};
})