diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index d79aff134cbb..ee990c47c21e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4800,6 +4800,11 @@ githubId = 32810399; name = "Diffumist"; }; + DimitarNestorov = { + name = "Dimitar Nestorov"; + github = "DimitarNestorov"; + githubId = 8790386; + }; diogotcorreia = { name = "Diogo Correia"; email = "me@diogotc.com"; diff --git a/pkgs/development/tools/yarn-berry/default.nix b/pkgs/development/tools/yarn-berry/default.nix index d52d6d27e880..1ae3e1ef6071 100644 --- a/pkgs/development/tools/yarn-berry/default.nix +++ b/pkgs/development/tools/yarn-berry/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "yarn-berry"; - version = "4.0.1"; + version = "4.1.0"; src = fetchFromGitHub { owner = "yarnpkg"; repo = "berry"; rev = "@yarnpkg/cli/${version}"; - hash = "sha256-9QNeXamNqRx+Bfg8nAhnImPuNFyqrHIs1eF9prSwIR4="; + hash = "sha256-SjWjvnq9sHdUhnZfzVC5BTQwksKcLqz8W+TTNXrIVjE="; }; buildInputs = [ @@ -33,11 +33,13 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru.updateScript = ./update.sh; + meta = with lib; { homepage = "https://yarnpkg.com/"; description = "Fast, reliable, and secure dependency management."; license = licenses.bsd2; - maintainers = with maintainers; [ ryota-ka thehedgeh0g ]; + maintainers = with maintainers; [ ryota-ka thehedgeh0g DimitarNestorov ]; platforms = platforms.unix; mainProgram = "yarn"; }; diff --git a/pkgs/development/tools/yarn-berry/update.sh b/pkgs/development/tools/yarn-berry/update.sh new file mode 100755 index 000000000000..5ce8bc02c957 --- /dev/null +++ b/pkgs/development/tools/yarn-berry/update.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p common-updater-scripts curl jq + +set -eou pipefail + +payload=$(jq -cn --rawfile query /dev/stdin '{"query": $query}' <