about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/ldacbt/default.nix
blob: 1d91cafc81c4d7e876b20cce0959cd6bb34618a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib, stdenv
, 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;
  };

  outputs = [ "out" "dev" ];

  nativeBuildInputs = [
    cmake
  ];

  cmakeFlags = [
    # CMakeLists.txt by default points to $out
    "-DINSTALL_INCLUDEDIR=${placeholder "dev"}/include"
  ];

  meta = with lib; {
    description = "AOSP libldac dispatcher";
    homepage    = "https://github.com/EHfive/ldacBT";
    license     = licenses.asl20;
    platforms   = platforms.all;
    maintainers = with maintainers; [ adisbladis ];
  };
}