mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
yarn-zpm: 6.0.0-rc.19 -> 6.0.0-rc.22 (#568681)
This commit is contained in:
@@ -1,30 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
gitMinimal,
|
||||
jq,
|
||||
nix-update-script,
|
||||
runCommand,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "yarn-zpm";
|
||||
version = "6.0.0-rc.19";
|
||||
version = "6.0.0-rc.22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yarnpkg";
|
||||
repo = "zpm";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-I7iMmTcz+NfZfSebOTNDTe1YTwqGCU3zC+5pRhkYgsQ=";
|
||||
hash = "sha256-hUofl9mo/lBHasVR/7/2l8fek0dHr2E0aiSq28R+uVk=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-6TPis4c/2uLGfG3NppY72x8YPo8WyAGRXt4urIwIGt0=";
|
||||
cargoHash = "sha256-OhlTQ/NMXwUnvyEJv20hPN7g1eaZWIQdJcWWDeKOK+s=";
|
||||
|
||||
cargoBuildFlags = [ "--package=zpm" ];
|
||||
cargoTestFlags = [ "--package=zpm" ];
|
||||
|
||||
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"--skip=http::tests::network_concurrency_permit_is_released_after_failure"
|
||||
"--skip=http::tests::network_concurrency_limits_in_flight_response_bodies"
|
||||
];
|
||||
|
||||
# yarn is the Yarn Switch binary (zpm-switch package), yarn-bin is the actual package manager (zpm package)
|
||||
# See https://yarn6.netlify.app/getting-started/#:~:text=You%20can%20bypass%20Yarn%20Switch
|
||||
postInstall = ''
|
||||
@@ -42,7 +48,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
git
|
||||
gitMinimal
|
||||
finalAttrs.finalPackage
|
||||
];
|
||||
}
|
||||
@@ -61,7 +67,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
jq -n '{name: "workspace-test"}' > workspace-test/package.json
|
||||
yarn install
|
||||
jq -e '.name == "workspace-test"' node_modules/workspace-test/package.json
|
||||
jq -e '.workspaces | has("workspace-test")' yarn.lock
|
||||
jq -e '.project.workspaces | has("workspace-test")' yarn.lock
|
||||
touch $out
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user