2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ldacBT";
|
|
|
|
version = "2.0.2.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "ldacBT";
|
|
|
|
owner = "ehfive";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09dalysx4fgrgpfdm9a51x6slnf4iik1sqba4xjgabpvq91bnb63";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# CMakeLists.txt by default points to $out
|
|
|
|
"-DINSTALL_INCLUDEDIR=${placeholder "dev"}/include"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "AOSP libldac dispatcher";
|
|
|
|
homepage = "https://github.com/EHfive/ldacBT";
|
|
|
|
license = licenses.asl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
# libldac code detects & #error's out on non-LE byte order
|
|
|
|
platforms = platforms.littleEndian;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|