bluez: 5.51 -> 5.52, aliased bluezFull to bluez
This commit is contained in:
parent
19f42620ef
commit
83655d6993
@ -1,43 +1,58 @@
|
|||||||
{ stdenv, lib, fetchurl, pkgconfig, dbus, glib, alsaLib,
|
{ stdenv
|
||||||
python3, readline, udev, libical, systemd, json_c,
|
, lib
|
||||||
enableHealth ? false,
|
, fetchurl
|
||||||
enableMesh ? false,
|
, alsaLib
|
||||||
enableMidi ? false,
|
, dbus
|
||||||
enableNfc ? false,
|
, glib
|
||||||
enableSap ? false,
|
, json_c
|
||||||
enableSixaxis ? false,
|
, libical
|
||||||
enableWiimote ? false,
|
, pkgconfig
|
||||||
|
, python3
|
||||||
|
, readline
|
||||||
|
, systemd
|
||||||
|
, udev
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "5.51";
|
pname = "bluez";
|
||||||
name = "bluez-${version}";
|
version = "5.52";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/bluetooth/${name}.tar.xz";
|
url = "mirror://kernel/linux/bluetooth/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1fpbsl9kkfq6mn6n0dg4h0il4c7fzhwhn79gh907k5b2kwszpvgb";
|
sha256 = "02jng21lp6fb3c2bh6vf9y7cj4gaxwk29dfc32ncy0lj0gi4q57p";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPath = with python3.pkgs; [
|
pythonPath = with python3.pkgs; [
|
||||||
dbus-python pygobject2 pygobject3 recursivePthLoader
|
dbus-python
|
||||||
|
pygobject3
|
||||||
|
recursivePthLoader
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
dbus glib alsaLib python3 python3.pkgs.wrapPython
|
alsaLib
|
||||||
readline udev libical
|
dbus
|
||||||
] ++ lib.optional enableSap json_c;
|
glib
|
||||||
|
json_c
|
||||||
|
libical
|
||||||
|
python3
|
||||||
|
readline
|
||||||
|
udev
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
python3.pkgs.wrapPython
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "test" ];
|
outputs = [ "out" "dev" "test" ];
|
||||||
|
|
||||||
postConfigure = ''
|
postPatch = ''
|
||||||
substituteInPlace tools/hid2hci.rules \
|
substituteInPlace tools/hid2hci.rules \
|
||||||
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
--replace /sbin/udevadm ${systemd}/bin/udevadm \
|
||||||
--replace "hid2hci " "$out/lib/udev/hid2hci "
|
--replace "hid2hci " "$out/lib/udev/hid2hci "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = (with stdenv.lib; [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--enable-library"
|
"--enable-library"
|
||||||
"--enable-cups"
|
"--enable-cups"
|
||||||
@ -48,19 +63,19 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
||||||
"--with-udevdir=${placeholder "out"}/lib/udev"
|
"--with-udevdir=${placeholder "out"}/lib/udev"
|
||||||
] ++ optional enableHealth [ "--enable-health" ]
|
"--enable-health"
|
||||||
++ optional enableMesh [ "--enable-mesh" ]
|
"--enable-mesh"
|
||||||
++ optional enableMidi [ "--enable-midi" ]
|
"--enable-midi"
|
||||||
++ optional enableNfc [ "--enable-nfc" ]
|
"--enable-nfc"
|
||||||
++ optional enableSap [ "--enable-sap" ]
|
"--enable-sap"
|
||||||
++ optional enableSixaxis [ "--enable-sixaxis" ]
|
"--enable-sixaxis"
|
||||||
++ optional enableWiimote [ "--enable-wiimote" ]
|
"--enable-wiimote"
|
||||||
);
|
];
|
||||||
|
|
||||||
# Work around `make install' trying to create /var/lib/bluetooth.
|
# Work around `make install' trying to create /var/lib/bluetooth.
|
||||||
installFlags = "statedir=$(TMPDIR)/var/lib/bluetooth";
|
installFlags = [ "statedir=$(TMPDIR)/var/lib/bluetooth" ];
|
||||||
|
|
||||||
makeFlags = "rulesdir=${placeholder "out"}/lib/udev/rules.d";
|
makeFlags = [ "rulesdir=${placeholder "out"}/lib/udev/rules.d" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $test/{bin,test}
|
mkdir -p $test/{bin,test}
|
||||||
|
@ -48,6 +48,7 @@ mapAliases ({
|
|||||||
bar-xft = lemonbar-xft; # added 2015-01-16
|
bar-xft = lemonbar-xft; # added 2015-01-16
|
||||||
bashCompletion = bash-completion; # Added 2016-09-28
|
bashCompletion = bash-completion; # Added 2016-09-28
|
||||||
beegfs = throw "beegfs has been removed."; # added 2019-11-24
|
beegfs = throw "beegfs has been removed."; # added 2019-11-24
|
||||||
|
bluezFull = bluez; # Added 2019-12-03
|
||||||
bridge_utils = bridge-utils; # added 2015-02-20
|
bridge_utils = bridge-utils; # added 2015-02-20
|
||||||
bro = zeek; # added 2019-09-29
|
bro = zeek; # added 2019-09-29
|
||||||
btrfsProgs = btrfs-progs; # added 2016-01-03
|
btrfsProgs = btrfs-progs; # added 2016-01-03
|
||||||
|
@ -15852,16 +15852,6 @@ in
|
|||||||
|
|
||||||
bluez = bluez5;
|
bluez = bluez5;
|
||||||
|
|
||||||
bluezFull = bluez.override {
|
|
||||||
enableHealth = true;
|
|
||||||
enableMesh = true;
|
|
||||||
enableMidi = true;
|
|
||||||
enableNfc = true;
|
|
||||||
enableSap = true;
|
|
||||||
enableSixaxis = true;
|
|
||||||
enableWiimote = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (python3Packages) bedup;
|
inherit (python3Packages) bedup;
|
||||||
|
|
||||||
bolt = callPackage ../os-specific/linux/bolt { };
|
bolt = callPackage ../os-specific/linux/bolt { };
|
||||||
@ -25319,11 +25309,7 @@ in
|
|||||||
|
|
||||||
xteddy = callPackage ../applications/misc/xteddy { };
|
xteddy = callPackage ../applications/misc/xteddy { };
|
||||||
|
|
||||||
xwiimote = callPackage ../misc/drivers/xwiimote {
|
xwiimote = callPackage ../misc/drivers/xwiimote { };
|
||||||
bluez = pkgs.bluez5.override {
|
|
||||||
enableWiimote = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xzoom = callPackage ../tools/X11/xzoom {};
|
xzoom = callPackage ../tools/X11/xzoom {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user