affine: 0.21.4 -> 0.21.6

This commit is contained in:
ZHAO Jin-Xiang 2025-05-05 13:54:20 +00:00
parent 56b76fe834
commit b1ea131dfd

View file

@ -4,9 +4,9 @@
stdenvNoCC,
fetchFromGitHub,
rustPlatform,
electron_34,
electron_35,
nodejs_22,
yarn-berry,
yarn-berry_4,
cacert,
writableTmpDirAsHomeHook,
cargo,
@ -17,12 +17,12 @@
jq,
copyDesktopItems,
makeWrapper,
llvmPackages,
apple-sdk_15,
makeDesktopItem,
nix-update-script,
buildType ? "stable",
commandLineArgs ? "",
llvmPackages,
apple-sdk_15,
}:
let
hostPlatform = stdenvNoCC.hostPlatform;
@ -34,21 +34,21 @@ let
}
.${hostPlatform.parsed.cpu.name}
or (throw "affine(${buildType}): unsupported CPU family ${hostPlatform.parsed.cpu.name}");
electron = electron_34;
electron = electron_35;
nodejs = nodejs_22;
yarn = yarn-berry.override { inherit nodejs; };
yarn-berry = yarn-berry_4.override { inherit nodejs; };
productName = if buildType != "stable" then "AFFiNE-${buildType}" else "AFFiNE";
binName = lib.toLower productName;
in
stdenv.mkDerivation (finalAttrs: {
pname = binName;
version = "0.21.4";
version = "0.21.6";
src = fetchFromGitHub {
owner = "toeverything";
repo = "AFFiNE";
tag = "v${finalAttrs.version}";
hash = "sha256-Xd8b+JXL46r9Jv5Uv5wdtvSKwnHafEo52v1aERmyxrI=";
hash = "sha256-xiOfy3uskqYv5b0U2s1Zpc4/ydsRhhUd8M33IH0BJ10=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
name = "yarn-offline-cache";
inherit (finalAttrs) src;
nativeBuildInputs = [
yarn
yarn-berry
cacert
writableTmpDirAsHomeHook
];
@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
dontInstall = true;
outputHashMode = "recursive";
outputHash = "sha256-w9Lz8wFq34VXInoE5pUeg1B7N92D+TnBWbL2qJ/q8ik=";
outputHash = "sha256-XpVygLwK/vjQJ5cDckIRM3Uo5hcahTz/XV1WjBQmOac=";
};
buildInputs = lib.optionals hostPlatform.isDarwin [
@ -108,7 +108,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs =
[
nodejs
yarn
yarn-berry
cargo
rustc
findutils