3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/upower/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, dbus-glib
, intltool, libxslt, docbook_xsl, udev, libgudev, libusb1
, useSystemd ? true, systemd, gobject-introspection
}:
stdenv.mkDerivation rec {
2018-10-25 19:52:46 +01:00
name = "upower-0.99.9";
src = fetchurl {
2018-10-25 19:52:46 +01:00
url = https://gitlab.freedesktop.org/upower/upower/uploads/2282c7c0e53fb31816b824c9d1f547e8/upower-0.99.9.tar.xz;
sha256 = "046ix7j7hmb7ycv8v54668kjsrgjhzwxn299c1d87vdnkd38kfh1";
};
buildInputs =
[ dbus-glib intltool libxslt docbook_xsl udev libgudev libusb1 gobject-introspection ]
++ stdenv.lib.optional useSystemd systemd;
nativeBuildInputs = [ pkgconfig ];
configureFlags =
[ "--with-backend=linux" "--localstatedir=/var"
]
++ stdenv.lib.optional useSystemd
2015-09-09 10:35:08 +01:00
[ "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--with-systemdutildir=$(out)/lib/systemd"
"--with-udevrulesdir=$(out)/lib/udev/rules.d"
];
NIX_CFLAGS_LINK = "-lgcc_s";
doCheck = false; # fails with "env: './linux/integration-test': No such file or directory"
installFlags = "historydir=$(TMPDIR)/foo";
meta = {
homepage = https://upower.freedesktop.org/;
description = "A D-Bus service for power management";
platforms = stdenv.lib.platforms.linux;
2018-08-04 15:21:21 +01:00
license = stdenv.lib.licenses.gpl2Plus;
};
}