fix flutter build for aarch64
This commit is contained in:
parent
58c6c1dd7d
commit
dc44d8098e
|
@ -1,5 +1,5 @@
|
|||
diff --git a/pkgs/applications/networking/instant-messengers/fluffychat/default.nix b/pkgs/applications/networking/instant-messengers/fluffychat/default.nix
|
||||
index d50e7118cc1..cd92804b279 100644
|
||||
index 565c44f72e9..f20a3d4e9be 100644
|
||||
--- a/pkgs/applications/networking/instant-messengers/fluffychat/default.nix
|
||||
+++ b/pkgs/applications/networking/instant-messengers/fluffychat/default.nix
|
||||
@@ -4,13 +4,19 @@
|
||||
|
@ -10,31 +10,31 @@ index d50e7118cc1..cd92804b279 100644
|
|||
}:
|
||||
|
||||
+let vendorHashes = {
|
||||
+ x86_64-linux = "sha256-co+bnsVIyg42JpM9FimfGEjrd6A99GlBeow1Dgv7NBI=";
|
||||
+ aarch64-linux = "sha256-XNCtkunlWPCLTn1u7dY2Uaxf4BQ6w+nyec97iGtEvfI=";
|
||||
+ x86_64-linux = "sha256-j5opwEFifa+DMG7Uziv4SWEPVokD6OSq8mSIr0AdDL0=";
|
||||
+ aarch64-linux = "sha256-gPz/j7oHO2f3DVNNy7DpY/8XTjWt2Kcf3XjFmH81HDs=";
|
||||
+};
|
||||
+in
|
||||
flutter.mkFlutterApp rec {
|
||||
pname = "fluffychat";
|
||||
version = "1.2.0";
|
||||
|
||||
- vendorHash = "sha256-co+bnsVIyg42JpM9FimfGEjrd6A99GlBeow1Dgv7NBI=";
|
||||
- vendorHash = "sha256-j5opwEFifa+DMG7Uziv4SWEPVokD6OSq8mSIr0AdDL0=";
|
||||
+ vendorHash = vendorHashes."${stdenv.hostPlatform.system}" or (throw "unsupported system: ${stdenv.hostPlatform.system}");
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "famedly";
|
||||
diff --git a/pkgs/development/compilers/flutter/default.nix b/pkgs/development/compilers/flutter/default.nix
|
||||
index 4529d2adc1a..9a4e5ad8b38 100644
|
||||
index 9eba6773448..e9d352169b2 100644
|
||||
--- a/pkgs/development/compilers/flutter/default.nix
|
||||
+++ b/pkgs/development/compilers/flutter/default.nix
|
||||
@@ -19,6 +19,10 @@ let
|
||||
url = "${dartSourceBase}/stable/release/${dartVersion}/sdk/dartsdk-linux-x64-release.zip";
|
||||
sha256 = "sha256-AFJGeiPsjUZSO+DykmOIFETg2jIohg62tp3ghZrKJFk=";
|
||||
sha256 = "sha256-PMY6DCFQC8XrlnFzOEPcwgBAs5/cAvNd78969Z+I1Fk=";
|
||||
};
|
||||
+ "${dartVersion}-aarch64-linux" = fetchurl {
|
||||
+ url = "${dartSourceBase}/stable/release/${dartVersion}/sdk/dartsdk-linux-arm64-release.zip";
|
||||
+ sha256 = "sha256-BIK6kUx+m+/GfR/wBXv8rjVNbP6w1HFvH/RGIwiaJog=";
|
||||
+ sha256 = "sha256-3p0cUoNn+Du9GSvVZa9bfZ1I9295uqTA5M9kcj4/uL4=";
|
||||
+ };
|
||||
};
|
||||
};
|
||||
in
|
||||
in {
|
||||
|
|
|
@ -10,29 +10,28 @@ fetchpatch: [
|
|||
# (it's a dupe of https://github.com/NixOS/nixpkgs/pull/112677 )
|
||||
./02-rpi4-uboot.patch
|
||||
|
||||
# TODO: more patches are required prior to this one
|
||||
# flutter.dart: 2.16.1 -> 2.16.2
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NixOS/nixpkgs/pull/172873.diff";
|
||||
sha256 = "sha256-HGYk83XOhFe1wWNCKNdF6s/7laWJ0Jisb8bDJcHVlsQ=";
|
||||
})
|
||||
# Flutter: 2.10.1->3.0.4
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NixOS/nixpkgs/pull/173200.diff";
|
||||
sha256 = "sha256-g1tZdLTrAJx3ijgabqz8XInC20PQM3FYRENQ7c6NfQw=";
|
||||
})
|
||||
# dart: 2.17.3 -> 2.18.0
|
||||
(fetchpatch {
|
||||
url = "https://github.com/NixOS/nixpkgs/pull/189841.diff";
|
||||
sha256 = "sha256-E3rTNex7PiFHsLgtb0x9/Q/naqDYD1vFuGyduV4Z6qY=";
|
||||
})
|
||||
# # flutter.dart: 2.16.1 -> 2.16.2
|
||||
# (fetchpatch {
|
||||
# url = "https://github.com/NixOS/nixpkgs/pull/172873.diff";
|
||||
# sha256 = "sha256-HGYk83XOhFe1wWNCKNdF6s/7laWJ0Jisb8bDJcHVlsQ=";
|
||||
# })
|
||||
# # Flutter: 2.10.1->3.0.4
|
||||
# (fetchpatch {
|
||||
# url = "https://github.com/NixOS/nixpkgs/pull/173200.diff";
|
||||
# sha256 = "sha256-g1tZdLTrAJx3ijgabqz8XInC20PQM3FYRENQ7c6NfQw=";
|
||||
# })
|
||||
# # dart: 2.17.3 -> 2.18.0
|
||||
# (fetchpatch {
|
||||
# url = "https://github.com/NixOS/nixpkgs/pull/189841.diff";
|
||||
# sha256 = "sha256-E3rTNex7PiFHsLgtb0x9/Q/naqDYD1vFuGyduV4Z6qY=";
|
||||
# })
|
||||
# # # Flutter: 3.0.4->3.3.2, flutter.dart: 2.17.5->2.18.1
|
||||
# # (fetchpatch {
|
||||
# # url = "https://github.com/NixOS/nixpkgs/pull/189338.diff";
|
||||
# # sha256 = "sha256-MppSk1D3qQT8Z4lzEZ93UexoidT8yqM7ASPec4VvxCI=";
|
||||
# # })
|
||||
# enable aarch64 support for flutter's dart package
|
||||
./10-flutter-arm64.patch
|
||||
# Flutter: 3.0.4->3.3.2, flutter.dart: 2.17.5->2.18.1
|
||||
# (fetchpatch {
|
||||
# url = "https://github.com/NixOS/nixpkgs/pull/189338.diff";
|
||||
# sha256 = "sha256-MppSk1D3qQT8Z4lzEZ93UexoidT8yqM7ASPec4VvxCI=";
|
||||
# })
|
||||
|
||||
|
||||
# whalebird: support aarch64
|
||||
|
|
Loading…
Reference in New Issue