diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libgudev')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libgudev/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libgudev/default.nix b/nixpkgs/pkgs/development/libraries/libgudev/default.nix new file mode 100644 index 000000000000..8023acb75d28 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libgudev/default.nix @@ -0,0 +1,41 @@ +{ stdenv +, fetchurl +, pkgconfig +, udev +, glib +, gobject-introspection +, gnome3 +}: + +stdenv.mkDerivation rec { + 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" ]; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + versionPolicy = "none"; + }; + }; + + meta = with stdenv.lib; { + description = "A library that provides GObject bindings for libudev"; + homepage = https://wiki.gnome.org/Projects/libgudev; + maintainers = [ maintainers.eelco ] ++ gnome3.maintainers; + platforms = platforms.linux; + license = licenses.lgpl2Plus; + }; +} |