Skip to content

Commit

Permalink
element-desktop: use yarnConfigHook
Browse files Browse the repository at this point in the history
(cherry picked from commit 15fd40a)
  • Loading branch information
yuyuyureka authored and github-actions[bot] committed Mar 6, 2025
1 parent 5257372 commit 18f68a8
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions pkgs/by-name/el/element-desktop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
fetchFromGitHub,
makeWrapper,
makeDesktopItem,
fixup-yarn-lock,
yarn,
yarnConfigHook,
nodejs,
fetchYarnDeps,
jq,
Expand Down Expand Up @@ -48,27 +47,14 @@ stdenv.mkDerivation (
};

nativeBuildInputs = [
yarn
fixup-yarn-lock
yarnConfigHook
nodejs
makeWrapper
jq
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];

inherit seshat;

configurePhase = ''
runHook preConfigure
export HOME=$(mktemp -d)
yarn config --offline set yarn-offline-mirror $offlineCache
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
runHook postConfigure
'';

# Only affects unused scripts in $out/share/element/electron/scripts. Also
# breaks because there are some `node`-scripts with a `npx`-shebang and
# this shouldn't be in the closure just for unused scripts.
Expand Down

0 comments on commit 18f68a8

Please sign in to comment.