Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
# This package only provides the bluetooth headers from the bluez package
|
|
# for consumption in Python, which cannot consume bluez.dev due to multiple
|
|
# infinite recursion paths.
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bluez-headers";
|
|
version = "5.83";
|
|
|
|
# This package has the source, because of the emulatorAvailable check in the
|
|
# bluez function args, that causes an infinite recursion with Python on cross
|
|
# builds.
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/bluetooth/bluez-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-EIUi2QnSIFgTmb/sk9qrYgNVOc7vPdo+eZcHhcY70kw=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include/bluetooth
|
|
cp -v lib/*.h "$out/include/bluetooth/"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.bluez.org/";
|
|
description = "Official Linux Bluetooth protocol stack";
|
|
changelog = "https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/ChangeLog?h=${finalAttrs.version}";
|
|
license = with lib.licenses; [
|
|
bsd2
|
|
gpl2Plus
|
|
lgpl21Plus
|
|
mit
|
|
];
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|