2019-08-13 16:23:40 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, udev
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gnome3
|
|
|
|
}:
|
2015-09-08 12:50:50 +00:00
|
|
|
|
2019-08-13 16:23:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 02:56:57 +00:00
|
|
|
pname = "libgudev";
|
2019-08-13 16:23:40 +00:00
|
|
|
version = "233";
|
2015-09-08 12:50:50 +00:00
|
|
|
|
2018-02-22 13:34:45 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2015-09-08 12:50:50 +00:00
|
|
|
src = fetchurl {
|
2019-08-13 16:23:40 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "00xvva04lgqamhnf277lg32phjn971wgpc9cxvgf5x13xdq4jz2q";
|
2015-09-08 12:50:50 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig gobject-introspection ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ udev glib ];
|
2015-09-08 12:50:50 +00:00
|
|
|
|
2017-04-01 11:24:10 +00:00
|
|
|
# There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway.
|
|
|
|
configureFlags = [ "--disable-umockdev" ];
|
|
|
|
|
2018-03-03 02:56:57 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-04-01 10:26:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-11-17 08:43:55 +00:00
|
|
|
description = "A library that provides GObject bindings for libudev";
|
2015-09-08 12:50:50 +00:00
|
|
|
homepage = https://wiki.gnome.org/Projects/libgudev;
|
2018-03-03 02:56:57 +00:00
|
|
|
maintainers = [ maintainers.eelco ] ++ gnome3.maintainers;
|
2017-04-01 10:26:36 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2Plus;
|
2015-09-08 12:50:50 +00:00
|
|
|
};
|
|
|
|
}
|