2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-08-13 17:23:40 +01:00
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-08-13 17:23:40 +01:00
|
|
|
, udev
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gnome3
|
|
|
|
}:
|
2015-09-08 13:50:50 +01:00
|
|
|
|
2019-08-13 17:23:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 02:56:57 +00:00
|
|
|
pname = "libgudev";
|
2020-09-18 16:36:07 +01:00
|
|
|
version = "234";
|
2015-09-08 13:50:50 +01:00
|
|
|
|
2018-02-22 13:34:45 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2015-09-08 13:50:50 +01:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-18 16:36:07 +01:00
|
|
|
sha256 = "0drf39qhsdz35kwb18hnfj2ig4yfxhfks66m783zlhnvy2narbhv";
|
2015-09-08 13:50:50 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gobject-introspection ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ udev glib ];
|
2015-09-08 13:50:50 +01:00
|
|
|
|
2017-04-01 12:24:10 +01: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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-11-17 08:43:55 +00:00
|
|
|
description = "A library that provides GObject bindings for libudev";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/libgudev";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = [ maintainers.eelco ] ++ teams.gnome.members;
|
2017-04-01 11:26:36 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl2Plus;
|
2015-09-08 13:50:50 +01:00
|
|
|
};
|
|
|
|
}
|