Skip to content

Commit

Permalink
[Backport release 24.11] pnpm_10: init at 10.0.0 (#374000)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Jan 16, 2025
2 parents 2df7f4d + a7215fe commit 85d2f87
Show file tree
Hide file tree
Showing 25 changed files with 77 additions and 73 deletions.
6 changes: 3 additions & 3 deletions pkgs/applications/virtualization/podman-desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, copyDesktopItems
, electron
, nodejs
, pnpm
, pnpm_9
, makeDesktopItem
, autoSignDarwinBinariesHook
, nix-update-script
Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-07lf9jy22JUT+Vc5y9Tu1nkWaXU5RTdu3GibcvQsSs8=";
};

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-LPsNRd1c/cQeyBn3LZKnKeAsZ981sOkLYTnXIZL82LA=";
};
Expand All @@ -46,7 +46,7 @@ stdenv.mkDerivation (finalAttrs: {
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";

nativeBuildInputs = [
makeWrapper nodejs pnpm.configHook
makeWrapper nodejs pnpm_9.configHook
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
copyDesktopItems
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/as/astro-language-server/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
pnpm,
pnpm_9,
nodejs_22,
}:

Expand All @@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-NBLUeg1WqxTXtu8eg1fihQSfm8koYAEWhfXAj/fIdC8=";
};

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs)
pname
version
Expand All @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [
nodejs_22
pnpm.configHook
pnpm_9.configHook
];

buildInputs = [ nodejs_22 ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/cl/clash-verge-rev/webui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
version,
src,
pname,
pnpm,
pnpm_9,
nodejs,
stdenv,
meta,
}:
stdenv.mkDerivation {
inherit version src meta;
pname = "${pname}-webui";
pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-ZKDhBdVyLIPf7CQaYUvj9dJd3lA3zsqroSjTyvOmunQ=";
};

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
];

postPatch = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/da/daed/package.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pnpm,
pnpm_9,
nodejs,
stdenv,
clang,
Expand All @@ -22,14 +22,14 @@ let
web = stdenv.mkDerivation {
inherit pname version src;

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-vqkiZzd5WOeJem0zUyMsJd6/aHHAjlsIQMkNf+SUvHY=";
};

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
];

buildPhase = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/fl/flood/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, buildNpmPackage
, fetchFromGitHub
, nixosTests
, pnpm
, pnpm_9
, nix-update-script
}:

Expand All @@ -17,9 +17,9 @@ buildNpmPackage rec {
hash = "sha256-lm+vPo7V99OSUAVEvdiTNMlD/+iHGPIyPLc1WzO1aTU=";
};

npmConfigHook = pnpm.configHook;
npmConfigHook = pnpm_9.configHook;
npmDeps = pnpmDeps;
pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-NuU9O3bEboxmuEuk1WSUeZRNgVK5cwFiUAN3+7vACGw=";
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/fo/follow/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
makeDesktopItem,
makeWrapper,
nodejs,
pnpm,
pnpm_9,
stdenv,
}:
stdenv.mkDerivation rec {
Expand All @@ -23,12 +23,12 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
makeWrapper
imagemagick
];

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-FzMjN0rIjYxexf6tix4qi3mnuPkadjKihhN0Pj5y2nU=";
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/gu/gui-for-clash/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
stdenv,
nodejs,
pnpm,
pnpm_9,
fetchFromGitHub,
buildGoModule,
lib,
Expand All @@ -28,10 +28,10 @@ let

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
];

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/frontend";
hash = "sha256-RQtU61H1YklCgJrlyHALxUZp8OvVs2MgFThWBsYk2cs=";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/gu/gui-for-singbox/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
stdenv,
nodejs,
pnpm,
pnpm_9,
fetchFromGitHub,
buildGoModule,
lib,
Expand All @@ -28,10 +28,10 @@ let

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
];

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
sourceRoot = "${finalAttrs.src.name}/frontend";
hash = "sha256-bAgyGZLmEr8tMunoeQHl+B2IDGr4Gw3by1lC811lqio=";
Expand Down
8 changes: 4 additions & 4 deletions pkgs/by-name/ho/homebox/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
buildGo123Module,
fetchFromGitHub,
pnpm,
pnpm_9,
nodejs,
go_1_23,
git,
Expand Down Expand Up @@ -35,7 +35,7 @@ buildGo123Module {
preBuild = "";
};

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version;
src = "${src}/frontend";
hash = "sha256-x7sWSH84UJEXNRLCgEgXc4NrTRsn6OplANi+XGtIN9Y=";
Expand All @@ -56,8 +56,8 @@ buildGo123Module {
'';

nativeBuildInputs = [
pnpm
pnpm.configHook
pnpm_9
pnpm_9.configHook
nodejs
];

Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/le/legcord/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
pnpm,
pnpm_9,
nodejs,
electron_32,
makeWrapper,
Expand All @@ -22,13 +22,13 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [
pnpm.configHook
pnpm_9.configHook
nodejs
makeWrapper
copyDesktopItems
];

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-QTePf/QE85OzXIcnwLJsCJJyRxwoV+FNef2Z9nAt35E=";
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/me/metacubexd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fetchFromGitHub,
nix-update-script,
nodejs,
pnpm,
pnpm_9,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
Expand All @@ -18,11 +18,11 @@ stdenv.mkDerivation (finalAttrs: {
};

nativeBuildInputs = [
pnpm.configHook
pnpm_9.configHook
nodejs
];

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-OFcXsAFMwY6BnyEVK9Px1g17CHCQWyPpr1My7u3XPpU=";
};
Expand Down
10 changes: 5 additions & 5 deletions pkgs/by-name/mi/misskey/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
nixosTests,
fetchFromGitHub,
nodejs,
pnpm,
pnpm_9,
makeWrapper,
python3,
bash,
Expand All @@ -30,13 +30,13 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
makeWrapper
python3
] ++ lib.optionals stdenv.isDarwin [ xcbuild.xcrun ];

# https://nixos.org/manual/nixpkgs/unstable/#javascript-pnpm
pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-YWZhm5eKjB6JGP45WC3UrIkr7vuBUI4Q3oiK8Lst3dI=";
};
Expand Down Expand Up @@ -87,15 +87,15 @@ stdenv.mkDerivation (finalAttrs: {
# Otherwise, maybe somehow bindmount a writable directory into <package>/data/files.
ln -s /var/lib/misskey $out/data/files
makeWrapper ${pnpm}/bin/pnpm $out/bin/misskey \
makeWrapper ${pnpm_9}/bin/pnpm $out/bin/misskey \
--run "${checkEnvVarScript} || exit" \
--chdir $out/data \
--add-flags run \
--set-default NODE_ENV production \
--prefix PATH : ${
lib.makeBinPath [
nodejs
pnpm
pnpm_9
bash
]
} \
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/n8/n8n/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
nixosTests,
fetchFromGitHub,
nodejs,
pnpm,
pnpm_9,
python3,
node-gyp,
cacert,
Expand All @@ -27,13 +27,13 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-3fGsghGzqLb9B0qrqPuJV2pypd3kJVUrYohMe9quqG4=";
};

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-n+A7SGfjzvB9NOt8kqi7DswKSjCTef5SJItWtFzNpwA=";
};

nativeBuildInputs = [
pnpm.configHook
pnpm_9.configHook
python3 # required to build sqlite3 bindings
node-gyp # required to build sqlite3 bindings
cacert # required for rustls-native-certs (dependency of turbo build tool)
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/ov/overlayed/webui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
version,
stdenv,
nodejs,
pnpm,
pnpm_9,
}:

stdenv.mkDerivation (finalAttrs: {
inherit version src meta;
pname = "overlayed-webui";

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) src pname version;
hash = "sha256-+yyxoodcDfqJ2pkosd6sMk77/71RDsGthedo1Oigwto=";
};

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
];

buildPhase = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/pg/pgrok/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
fetchFromGitHub,
nix-update-script,
nodejs,
pnpm,
pnpm_9,
}:

let
Expand All @@ -28,10 +28,10 @@ buildGoModule {

nativeBuildInputs = [
nodejs
pnpm.configHook
pnpm_9.configHook
];

pnpmDeps = pnpm.fetchDeps {
pnpmDeps = pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-xObDEkNGMXcUqX9thAJoE45yzd7f15k2odDWv9X3RRE=";
};
Expand Down
Loading

0 comments on commit 85d2f87

Please sign in to comment.