upower: Remove unused dependencies
This commit is contained in:
parent
2a2cb8354e
commit
a6a73a1429
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, dbus, dbus_glib, dbus_tools
|
{ stdenv, fetchurl, pkgconfig, glib, dbus_glib
|
||||||
, intltool, libxslt, docbook_xsl, udev, libusb1, pmutils
|
, intltool, libxslt, docbook_xsl, udev, libusb1
|
||||||
, useSystemd ? true, systemd, gobjectIntrospection
|
, useSystemd ? true, systemd, gobjectIntrospection
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -19,22 +19,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
preConfigure =
|
|
||||||
''
|
|
||||||
substituteInPlace src/linux/up-backend.c \
|
|
||||||
--replace /usr/bin/pm- ${pmutils}/bin/pm- \
|
|
||||||
--replace /usr/sbin/pm- ${pmutils}/sbin/pm-
|
|
||||||
substituteInPlace src/notify-upower.sh \
|
|
||||||
--replace /usr/bin/dbus-send ${dbus_tools}/bin/dbus-send
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-backend=linux" "--localstatedir=/var"
|
[ "--with-backend=linux" "--localstatedir=/var"
|
||||||
"--enable-deprecated" # needed for Xfce (Nov 2013)
|
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional useSystemd
|
++ stdenv.lib.optional useSystemd
|
||||||
[ "--enable-systemd"
|
[ "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
||||||
"--with-systemdutildir=$(out)/lib/systemd"
|
"--with-systemdutildir=$(out)/lib/systemd"
|
||||||
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
|
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user