1 { lib, stdenv, nodejs }:
4 pname = "corepack-nodejs";
5 inherit (nodejs) version;
7 nativeBuildInputs = [ nodejs ];
13 corepack enable --install-directory $out/bin
14 # Enabling npm caused some crashes - leaving out for now
15 # corepack enable --install-directory $out/bin npm
19 description = "Wrappers for npm, pnpm and Yarn via Node.js Corepack";
20 homepage = "https://nodejs.org/api/corepack.html";
21 changelog = "https://github.com/nodejs/node/releases/tag/v${nodejs.version}";
22 license = lib.licenses.mit;
23 maintainers = with lib.maintainers; [ wmertens ];
24 platforms = lib.platforms.linux ++ lib.platforms.darwin;