at 24.11-pre 34 lines 1.2 kB view raw
1{ lib, stdenv, fetchFromGitiles, cmake, darwin }: 2 3stdenv.mkDerivation { 4 pname = "aemu"; 5 version = "0.1.2"; 6 7 src = fetchFromGitiles { 8 url = "https://android.googlesource.com/platform/hardware/google/aemu"; 9 rev = "07ccc3ded3357e67e39104f18f35feaf8b3b6a0e"; 10 hash = "sha256-H3IU9aTFSzUAqYgrtHd4F18hbhZsbOJGC4K5JwMQOOw="; 11 }; 12 13 nativeBuildInputs = [ cmake ]; 14 buildInputs = lib.optionals stdenv.isDarwin [ 15 darwin.apple_sdk.frameworks.Cocoa 16 ]; 17 18 cmakeFlags = [ 19 "-DAEMU_COMMON_GEN_PKGCONFIG=ON" 20 "-DAEMU_COMMON_BUILD_CONFIG=gfxstream" 21 # "-DENABLE_VKCEREAL_TESTS=OFF" 22 ]; 23 24 meta = with lib; { 25 homepage = "https://android.googlesource.com/platform/hardware/google/aemu"; 26 description = "Android emulation utilities library"; 27 maintainers = with maintainers; [ qyliss ]; 28 # The BSD license comes from host-common/VpxFrameParser.cpp, which 29 # incorporates some code from libvpx, which uses the 3-clause BSD license. 30 license = with licenses; [ asl20 mit bsd3 ]; 31 # See base/include/aemu/base/synchronization/Lock.h 32 platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 33 }; 34}