Merge pull request #214699 from ryota-ka/berry

This commit is contained in:
Sandro 2023-07-24 16:42:44 +02:00 committed by GitHub
commit 52d568e90f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 0 deletions

View file

@ -14597,6 +14597,12 @@
githubId = 3280280;
name = "Ryne Everett";
};
ryota-ka = {
email = "ok@ryota-ka.me";
github = "ryota-ka";
githubId = 7309170;
name = "Ryota Kameoka";
};
rytone = {
email = "max@ryt.one";
github = "rastertail";

View file

@ -0,0 +1,43 @@
{ fetchFromGitHub, lib, nodejs, stdenv, yarn }:
stdenv.mkDerivation rec {
name = "yarn-berry";
version = "3.4.1";
src = fetchFromGitHub {
owner = "yarnpkg";
repo = "berry";
rev = "@yarnpkg/cli/${version}";
hash = "sha256-eBBB/F+mnGi93Qf23xgt306/ogoV76RXOM90O14u5Tw=";
};
buildInputs = [
nodejs
];
nativeBuildInputs = [
yarn
];
dontConfigure = true;
buildPhase = ''
runHook preBuild
yarn workspace @yarnpkg/cli build:cli
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm 755 ./packages/yarnpkg-cli/bundles/yarn.js "$out/bin/yarn"
runHook postInstall
'';
meta = with lib; {
homepage = "https://yarnpkg.com/";
description = "Fast, reliable, and secure dependency management.";
license = licenses.bsd2;
maintainers = with maintainers; [ ryota-ka ];
platforms = platforms.unix;
};
}

View file

@ -14685,6 +14685,8 @@ with pkgs;
yarn = callPackage ../development/tools/yarn { };
yarn-berry = callPackage ../development/tools/yarn-berry { };
yarn2nix-moretea = callPackage ../development/tools/yarn2nix-moretea/yarn2nix { pkgs = pkgs.__splicedPackages; };
inherit (yarn2nix-moretea)