From b39324bf5253b55d1137cd3821fad4e445919c4c Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Wed, 8 May 2019 23:06:00 -0400 Subject: upower: 0.99.9 -> 0.99.10 Using placeholder and drop the NIX_CFLAGS_LINK. https://gitlab.freedesktop.org/upower/upower/blob/UPOWER_0_99_10/NEWS --- pkgs/os-specific/linux/upower/default.nix | 71 ++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 24 deletions(-) (limited to 'pkgs/os-specific/linux/upower') diff --git a/pkgs/os-specific/linux/upower/default.nix b/pkgs/os-specific/linux/upower/default.nix index 0aaa31163ac..14458356a79 100644 --- a/pkgs/os-specific/linux/upower/default.nix +++ b/pkgs/os-specific/linux/upower/default.nix @@ -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; }; } -- cgit 1.4.1