1{ lib, stdenv, fetchurl, pkg-config, libsndfile }:
2
3stdenv.mkDerivation rec {
4 pname = "sbc";
5 version = "2.0";
6
7 src = fetchurl {
8 url = "https://www.kernel.org/pub/linux/bluetooth/${pname}-${version}.tar.xz";
9 sha256 = "sha256-jxI2jh279V4UU2UgRzz7M4yEs5KTnMm2Qpg2D9SgeZI=";
10 };
11
12 outputs = [ "out" "dev" ];
13
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ libsndfile ];
16
17 meta = with lib; {
18 description = "SubBand Codec Library";
19 homepage = "http://www.bluez.org/";
20 license = licenses.gpl2;
21 platforms = platforms.linux;
22 };
23}