git.iko.soy/typeable/nixpkgs
on master help sign in
bluez: remove unneeded dependencies and fix test bins
commit50fb62994b3d188542f14aa7066e4675f2d94458 authorRobin Gloster <mail@glob.in> dateWed 27 Sep 2017, 21:23 (9 years ago) parente83b78b
1 file changed+7−12
pkgs/os-specific/linux/bluez/default.nix+7−12
pkgs/os-specific/linux/bluez/default.nix+7−12
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
2− pythonPackages, readline, libsndfile, udev, libical,
2+ pythonPackages, readline, udev, libical,
33 systemd, enableWiimote ? false }:
44
55assert stdenv.isLinux;
@@ -15,13 +15,10 @@ stdenv.mkDerivation rec {
1515 pythonPath = with pythonPackages;
1616 [ dbus pygobject2 pygobject3 recursivePthLoader ];
1717
18− buildInputs =
19− [ pkgconfig dbus glib alsaLib pythonPackages.python pythonPackages.wrapPython
20− readline libsndfile udev libical
21− # Disables GStreamer; not clear what it gains us other than a
22− # zillion extra dependencies.
23− # gstreamer gst-plugins-base
24− ];
18+ buildInputs = [
19+ pkgconfig dbus glib alsaLib pythonPackages.python pythonPackages.wrapPython
20+ readline udev libical
21+ ];
2522
2623 outputs = [ "out" "dev" "test" ];
2724
@@ -51,10 +48,8 @@ stdenv.mkDerivation rec {
5148
5249 makeFlags = "rulesdir=$(out)/lib/udev/rules.d";
5350
54− # FIXME: Move these into a separate package to prevent Bluez from
55− # depending on Python etc.
5651 postInstall = ''
57− mkdir -p $test/test
52+ mkdir -p $test/{bin,test}
5853 cp -a test $test
5954 pushd $test/test
6055 for a in \
@@ -65,7 +60,7 @@ stdenv.mkDerivation rec {
6560 list-devices \
6661 monitor-bluetooth \
6762 ; do
68− ln -s ../test/$a $out/bin/bluez-$a
63+ ln -s ../test/$a $test/bin/bluez-$a
6964 done
7065 popd
7166 wrapPythonProgramsIn $test/test "$test/test $pythonPath"