nixpkgs/pkgs/development/libraries/libgudev/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, pkgconfig
, udev
, glib
, gobject-introspection
, gnome3
}:
stdenv.mkDerivation rec {
2018-03-03 02:56:57 +00:00
pname = "libgudev";
version = "233";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "00xvva04lgqamhnf277lg32phjn971wgpc9cxvgf5x13xdq4jz2q";
};
nativeBuildInputs = [ pkgconfig gobject-introspection ];
buildInputs = [ udev glib ];
# 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 11:26:36 +01:00
meta = with stdenv.lib; {
description = "A library that provides GObject bindings for libudev";
homepage = https://wiki.gnome.org/Projects/libgudev;
2018-03-03 02:56:57 +00:00
maintainers = [ maintainers.eelco ] ++ gnome3.maintainers;
2017-04-01 11:26:36 +01:00
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}