nodePackages.yarn: drop

This commit is contained in:
Robert Schütz 2024-08-13 06:55:04 -07:00
parent a663f5a0c9
commit 87d6cc69a4
7 changed files with 8 additions and 25 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchYarnDeps, fixup-yarn-lock, callPackage, nodejs }:
{ stdenv, fetchYarnDeps, fixup-yarn-lock, callPackage, nodejs, yarn }:
let
common = callPackage ./common.nix { };
in
@ -16,7 +16,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [
fixup-yarn-lock
nodejs
nodejs.pkgs.yarn
yarn
];
configurePhase = ''

View File

@ -1,5 +1,5 @@
src: version:
{ lib, fetchYarnDeps, nodejs_18, fixup-yarn-lock, stdenv }: stdenv.mkDerivation {
{ lib, fetchYarnDeps, nodejs_18, fixup-yarn-lock, stdenv, yarn }: stdenv.mkDerivation {
name = "mealie-frontend";
inherit version;
src = "${src}/frontend";
@ -12,7 +12,7 @@ src: version:
nativeBuildInputs = [
fixup-yarn-lock
nodejs_18
nodejs_18.pkgs.yarn
(yarn.override { nodejs = nodejs_18; })
];
configurePhase = ''

View File

@ -191,6 +191,7 @@ mapAliases {
inherit (pkgs) wrangler; # added 2024-07-01
inherit (pkgs) write-good; # added 2023-08-20
inherit (pkgs) yaml-language-server; # added 2023-09-05
inherit (pkgs) yarn; # added 2024-08-13
inherit (pkgs) yo; # added 2023-08-20
zx = pkgs.zx; # added 2023-08-01
}

View File

@ -256,5 +256,4 @@
, "wring"
, "@yaegassy/coc-nginx"
, "yalc"
, "yarn"
]

View File

@ -89266,22 +89266,4 @@ in
bypassCache = true;
reconstructLock = true;
};
yarn = nodeEnv.buildNodePackage {
name = "yarn";
packageName = "yarn";
version = "1.22.22";
src = fetchurl {
url = "https://registry.npmjs.org/yarn/-/yarn-1.22.22.tgz";
sha512 = "prL3kGtyG7o9Z9Sv8IPfBNrWTDmXB4Qbes8A9rEzt6wkJV8mUvoirjU0Mp3GGAU06Y0XQyA3/2/RQFVuK7MTfg==";
};
buildInputs = globalBuildInputs;
meta = {
description = "📦🐈 Fast, reliable, and secure dependency management.";
homepage = "https://github.com/yarnpkg/yarn#readme";
license = "BSD-2-Clause";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
}

View File

@ -10,6 +10,7 @@
, nodejs_18
, stdenvNoCC
, util-linux
, yarn
, zip
}:
@ -34,7 +35,6 @@ let
hash = "sha256-1sxd3eJ6/WjXS6XQbrgKUTNUmrhuc1dAvy+VAivGErg=";
};
inherit (nodejs.pkgs) yarn;
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-dwhwUWwv6RYKEMdhRBvKVXvM8n1r+Qo0D3/uFsWIOpw=";

View File

@ -8,6 +8,7 @@
, matrix-sdk-crypto-nodejs
, nixosTests
, nix-update-script
, yarn
}:
let
@ -36,7 +37,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [
fixup-yarn-lock
nodejs-slim
nodejs.pkgs.yarn
yarn
nodejs.pkgs.node-gyp-build
];