at 24.11-pre 37 lines 814 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3, cmake 4}: 5 6stdenv.mkDerivation rec { 7 pname = "ldacBT"; 8 version = "2.0.2.3"; 9 10 src = fetchFromGitHub { 11 repo = "ldacBT"; 12 owner = "ehfive"; 13 rev = "v${version}"; 14 sha256 = "09dalysx4fgrgpfdm9a51x6slnf4iik1sqba4xjgabpvq91bnb63"; 15 fetchSubmodules = true; 16 }; 17 18 outputs = [ "out" "dev" ]; 19 20 nativeBuildInputs = [ 21 cmake 22 ]; 23 24 cmakeFlags = [ 25 # CMakeLists.txt by default points to $out 26 "-DINSTALL_INCLUDEDIR=${placeholder "dev"}/include" 27 ]; 28 29 meta = with lib; { 30 description = "AOSP libldac dispatcher"; 31 homepage = "https://github.com/EHfive/ldacBT"; 32 license = licenses.asl20; 33 # libldac code detects & #error's out on non-LE byte order 34 platforms = platforms.littleEndian; 35 maintainers = with maintainers; [ ]; 36 }; 37}