affine: fix build (#368358)

This commit is contained in:
Masum Reza 2024-12-31 12:04:26 +05:30 committed by GitHub
commit 7771f9dac3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,6 @@
cacert, cacert,
cargo, cargo,
copyDesktopItems, copyDesktopItems,
electron_33,
fetchFromGitHub, fetchFromGitHub,
fetchurl, fetchurl,
findutils, findutils,
@ -10,14 +9,15 @@
lib, lib,
makeDesktopItem, makeDesktopItem,
makeWrapper, makeWrapper,
nodejs_20,
rsync, rsync,
rustPlatform, rustPlatform,
rustc, rustc,
stdenv, stdenv,
stdenvNoCC, stdenvNoCC,
yarn, yarn-berry,
zip, zip,
electron_33,
nodejs_20,
buildType ? "stable", buildType ? "stable",
commandLineArgs ? "", commandLineArgs ? "",
}: }:
@ -32,6 +32,8 @@ let
.${hostPlatform.parsed.cpu.name} .${hostPlatform.parsed.cpu.name}
or (throw "affine(${buildType}): unsupported CPU family ${hostPlatform.parsed.cpu.name}"); or (throw "affine(${buildType}): unsupported CPU family ${hostPlatform.parsed.cpu.name}");
electron = electron_33; electron = electron_33;
nodejs = nodejs_20;
yarn = yarn-berry.override { inherit nodejs; };
in in
stdenv.mkDerivation ( stdenv.mkDerivation (
finalAttrs: finalAttrs:
@ -121,7 +123,7 @@ stdenv.mkDerivation (
}; };
nativeBuildInputs = nativeBuildInputs =
[ [
nodejs_20 nodejs
yarn yarn
cargo cargo
rustc rustc