mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
upower: fix Xfce via --enable-deprecated
Also drop older libusb1 version which is no longer needed with newer upower.
This commit is contained in:
parent
85d21a6963
commit
91028bd151
@ -1,20 +0,0 @@
|
||||
{ stdenv, fetchurl, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libusb-1.0.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libusb/${name}.tar.bz2";
|
||||
sha256 = "16sz34ix6hw2wwl3kqx6rf26fg210iryr68wc439dc065pffw879";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig ];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.libusb.org;
|
||||
description = "User-space USB library";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.urkud ];
|
||||
};
|
||||
}
|
||||
|
@ -19,15 +19,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
configureFlags =
|
||||
[ "--with-backend=linux" "--localstatedir=/var" ]
|
||||
++ stdenv.lib.optional useSystemd
|
||||
[ "--enable-systemd"
|
||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||
"--with-systemdutildir=$(out)/lib/systemd/system-sleep"
|
||||
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
|
||||
];
|
||||
|
||||
preConfigure =
|
||||
''
|
||||
substituteInPlace src/linux/up-backend.c \
|
||||
@ -37,6 +28,17 @@ stdenv.mkDerivation rec {
|
||||
--replace /usr/bin/dbus-send ${dbus_tools}/bin/dbus-send
|
||||
'';
|
||||
|
||||
configureFlags =
|
||||
[ "--with-backend=linux" "--localstatedir=/var"
|
||||
"--enable-deprecated" # needed for Xfce (Nov 2013)
|
||||
]
|
||||
++ stdenv.lib.optional useSystemd
|
||||
[ "--enable-systemd"
|
||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||
"--with-systemdutildir=$(out)/lib/systemd/system-sleep"
|
||||
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_LINK = "-lgcc_s";
|
||||
|
||||
installFlags = "historydir=$(TMPDIR)/foo";
|
||||
|
@ -7064,9 +7064,7 @@ let
|
||||
|
||||
untie = callPackage ../os-specific/linux/untie { };
|
||||
|
||||
upower = callPackage ../os-specific/linux/upower {
|
||||
libusb1 = callPackage ../development/libraries/libusb1/1_0_9.nix {};
|
||||
};
|
||||
upower = callPackage ../os-specific/linux/upower { };
|
||||
|
||||
upstart = callPackage ../os-specific/linux/upstart { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user