nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, pkg-config, libsndfile }:
2
3stdenv.mkDerivation rec {
4 pname = "sbc";
5 version = "1.4";
6
7 src = fetchurl {
8 url = "https://www.kernel.org/pub/linux/bluetooth/${pname}-${version}.tar.xz";
9 sha256 = "1jal98pnrjkzxlkiqy0ykh4qmgnydz9bmsp1jn581p5kddpg92si";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ libsndfile ];
14
15 meta = with lib; {
16 description = "SubBand Codec Library";
17 homepage = "http://www.bluez.org/";
18 license = licenses.gpl2;
19 platforms = platforms.linux;
20 };
21}