forked from Nexus/nexus
use another avif library that works on aarch64-linux
This commit is contained in:
parent
72c5e7d819
commit
8180338d99
12 changed files with 93 additions and 196 deletions
|
|
@ -9,7 +9,6 @@ let
|
|||
];
|
||||
cmakeVersions = [ "3.22.1" ];
|
||||
platformVersions = [
|
||||
"31"
|
||||
"34"
|
||||
"36"
|
||||
];
|
||||
|
|
@ -48,17 +47,7 @@ pkgs.mkShell {
|
|||
|
||||
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_HOME}/build-tools/36.0.0/aapt2";
|
||||
}
|
||||
// lib.optionalAttrs pkgs.stdenv.isLinux (
|
||||
let
|
||||
arch = if pkgs.stdenv.hostPlatform.isAarch64 then "arm64" else "x64";
|
||||
in
|
||||
{
|
||||
LD_LIBRARY_PATH = lib.concatStringsSep ":" [
|
||||
"./build/native_assets/linux"
|
||||
"./build/linux/${arch}/debug/bundle/lib"
|
||||
"./build/linux/${arch}/release/bundle/lib"
|
||||
(lib.makeLibraryPath [ pkgs.zlib ])
|
||||
];
|
||||
}
|
||||
);
|
||||
// lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
LD_LIBRARY_PATH = "./build/native_assets/linux:${lib.makeLibraryPath [ pkgs.zlib ]}";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue