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