about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/sbc
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/sbc')
-rw-r--r--nixpkgs/pkgs/development/libraries/sbc/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/sbc/default.nix b/nixpkgs/pkgs/development/libraries/sbc/default.nix
new file mode 100644
index 000000000000..0ff6db175611
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/sbc/default.nix
@@ -0,0 +1,20 @@
+{ lib, stdenv, fetchurl, pkg-config, libsndfile }:
+
+stdenv.mkDerivation rec {
+  name = "sbc-1.4";
+
+  src = fetchurl {
+    url = "http://www.kernel.org/pub/linux/bluetooth/${name}.tar.xz";
+    sha256 = "1jal98pnrjkzxlkiqy0ykh4qmgnydz9bmsp1jn581p5kddpg92si";
+  };
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ libsndfile ];
+
+  meta = with lib; {
+    description = "SubBand Codec Library";
+    homepage = "http://www.bluez.org/";
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+  };
+}