WIP nix builds
Not working, needs a separate gomuks build
This commit is contained in:
parent
0cae2692bc
commit
04b7ab8e2e
7 changed files with 94 additions and 56 deletions
41
linux/nix/devshell.nix
Normal file
41
linux/nix/devshell.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ pkgs, lib }:
|
||||
let
|
||||
android = pkgs.androidenv.composeAndroidPackages {
|
||||
toolsVersion = "26.1.1";
|
||||
platformToolsVersion = "36.0.1";
|
||||
buildToolsVersions = [
|
||||
"35.0.0"
|
||||
"36.0.0"
|
||||
];
|
||||
cmakeVersions = [ "3.22.1" ];
|
||||
platformVersions = [ "36" ];
|
||||
abiVersions = [
|
||||
"armeabi-v7a"
|
||||
"arm64-v8a"
|
||||
];
|
||||
includeNDK = true;
|
||||
ndkVersions = [ "28.2.13676358" ];
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
git
|
||||
jdk17
|
||||
flutter
|
||||
android.platform-tools
|
||||
];
|
||||
|
||||
env = rec {
|
||||
LIBCLANG_PATH = lib.makeLibraryPath [ pkgs.libclang ];
|
||||
LD_LIBRARY_PATH = "./build/native_assets/linux:${lib.makeLibraryPath [ pkgs.zlib ]}";
|
||||
CPATH = lib.makeSearchPath "include" [ pkgs.glibc.dev ];
|
||||
|
||||
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
|
||||
ANDROID_SDK_ROOT = ANDROID_HOME;
|
||||
JAVA_HOME = pkgs.jdk17;
|
||||
|
||||
TOOLS = "${ANDROID_HOME}/build-tools/${"36.0.0"}";
|
||||
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${TOOLS}/aapt2";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue