Merge pull request #61174 from worldofpeace/bump-upower

upower: 0.99.9 -> 0.99.10
This commit is contained in:
worldofpeace 2019-05-09 16:10:28 -04:00 committed by GitHub
commit 974cbe2acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,41 +1,64 @@
{ stdenv, fetchurl, pkgconfig, dbus-glib
, intltool, libxslt, docbook_xsl, udev, libgudev, libusb1
, useSystemd ? true, systemd, gobject-introspection
{ stdenv
, fetchurl
, pkgconfig
, dbus-glib
, intltool
, libxslt
, docbook_xsl
, udev
, libgudev
, libusb1
, gobject-introspection
, useSystemd ? true, systemd
}:
stdenv.mkDerivation rec {
name = "upower-0.99.9";
pname = "upower";
version = "0.99.10";
src = fetchurl {
url = https://gitlab.freedesktop.org/upower/upower/uploads/2282c7c0e53fb31816b824c9d1f547e8/upower-0.99.9.tar.xz;
sha256 = "046ix7j7hmb7ycv8v54668kjsrgjhzwxn299c1d87vdnkd38kfh1";
url = https://gitlab.freedesktop.org/upower/upower/uploads/c438511024b9bc5a904f8775cfc8e4c4/upower-0.99.10.tar.xz;
sha256 = "17d2bclv5fgma2y3g8bsn9pdvspn1zrzismzdnzfivc0f2wm28k4";
};
buildInputs =
[ dbus-glib intltool libxslt docbook_xsl udev libgudev libusb1 gobject-introspection ]
++ stdenv.lib.optional useSystemd systemd;
nativeBuildInputs = [
pkgconfig
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
dbus-glib
intltool
libxslt
docbook_xsl
udev
libgudev
libusb1
gobject-introspection
]
++ stdenv.lib.optional useSystemd systemd
;
configureFlags =
[ "--with-backend=linux" "--localstatedir=/var"
]
++ stdenv.lib.optional useSystemd
[ "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--with-systemdutildir=$(out)/lib/systemd"
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
];
NIX_CFLAGS_LINK = "-lgcc_s";
configureFlags = [
"--with-backend=linux"
"--localstatedir=/var"
]
++ stdenv.lib.optional useSystemd [
"--with-systemdsystemunitdir=${placeholder ''out''}/etc/systemd/system"
"--with-systemdutildir=${placeholder ''out''}/lib/systemd"
"--with-udevrulesdir=${placeholder ''out''}/lib/udev/rules.d"
]
;
doCheck = false; # fails with "env: './linux/integration-test': No such file or directory"
installFlags = "historydir=$(TMPDIR)/foo";
installFlags = [
"historydir=$(TMPDIR)/foo"
];
meta = {
meta = with stdenv.lib; {
homepage = https://upower.freedesktop.org/;
description = "A D-Bus service for power management";
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2Plus;
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}