Created
July 25, 2022 05:43
-
-
Save syphoxy/baace2fb0aff32318ae05385be8e05d5 to your computer and use it in GitHub Desktop.
Flutter Nix shell configuration file that provides dependencies for both Android and Linux build targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flutter: 2.10.1->3.0.4 <https://github.com/NixOS/nixpkgs/pull/173200> | |
# 043de04db8a6b0391b3fefaaade160514d866946 used below refers to latest commit on PR #173200. | |
{ | |
pkgs ? import (fetchTarball "https://github.com/nixos/nixpkgs/archive/043de04db8a6b0391b3fefaaade160514d866946.tar.gz") {}, | |
android-nixpkgs ? import (fetchTarball "https://github.com/tadfisher/android-nixpkgs/archive/master.tar.gz") {} | |
}: | |
let | |
android-sdk = android-nixpkgs.sdk (sdkPkgs: with sdkPkgs; [ | |
tools | |
emulator | |
platform-tools | |
cmdline-tools-7-0 | |
build-tools-30-0-3 | |
platforms-android-31 | |
]); | |
in | |
pkgs.mkShell { | |
buildInputs = with pkgs; [ | |
android-sdk | |
flutter | |
pkg-config | |
cmake | |
clang | |
gtk3 | |
libepoxy | |
ninja | |
pcre | |
]; | |
shellHook = '' | |
export LD_LIBRARY_PATH=${pkgs.libepoxy}/lib | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment