Skip to content

Commit 724f569

Browse files
committed
fix: use android with fixed autopatchelfhook
1 parent ffb8803 commit 724f569

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

nix/default.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,22 @@ let
4040
abiVersions = [ "x86-64" ];
4141
}).androidsdk;
4242
};
43+
fix-autopatchelfhook = import sources.fix-autopatchelfhook {
44+
inherit config;
45+
overlays = [
46+
android_overlay
47+
];
48+
};
49+
50+
flutter_overlay = _: pkgs: pkgs.lib.optionalAttrs (includeFlutter) {
51+
flutter = pkgs.flutterPackages.dev;
52+
};
4353

4454
pkgs = import sources.nixpkgs {
4555
inherit config;
4656
overlays = [
47-
android_overlay
57+
(_: pkgs: { inherit (fix-autopatchelfhook) androidsdk; })
58+
flutter_overlay
4859
];
4960
};
5061

@@ -56,7 +67,7 @@ let
5667
stdenv = pkgs.stdenv;
5768

5869
flutterTools =
59-
lib.optionalAttrs (includeFlutter) { inherit (pkgs) flutter-dev git; };
70+
lib.optionalAttrs (includeFlutter) { inherit (pkgs) flutter git; };
6071

6172
flutterAndroidTools = { inherit (pkgs) androidsdk jdk; };
6273

nix/sources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"url": "https://github.com/NixOS/nixpkgs/archive/2ae527c50e049570dd25132f9325527aa2320e32.tar.gz",
4848
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
4949
},
50-
"unstable-fix-autopatchelfhook": {
50+
"fix-autopatchelfhook": {
5151
"branch": "fix-autopatchelfhook",
5252
"description": "Nix Packages collection",
5353
"homepage": null,

0 commit comments

Comments
 (0)