diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libgudev')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libgudev/default.nix | 59 |
1 files changed, 59 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..6fd108b3b7a6 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libgudev/default.nix @@ -0,0 +1,59 @@ +{ lib, stdenv +, fetchurl +, pkg-config +, meson +, ninja +, udev +, glib +, gobject-introspection +, gnome +, vala +}: + +stdenv.mkDerivation rec { + pname = "libgudev"; + version = "236"; + + outputs = [ "out" "dev" ]; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "094mgjmwgsgqrr1i0vd20ynvlkihvs3vgbmpbrhswjsrdp86j0z5"; + }; + + nativeBuildInputs = [ + pkg-config + gobject-introspection + meson + ninja + vala + ]; + + buildInputs = [ + udev + glib + ]; + + mesonFlags = [ + # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway + "-Dtests=disabled" + ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ + "-Dintrospection=disabled" + "-Dvapi=disabled" + ]; + + passthru = { + updateScript = gnome.updateScript { + packageName = pname; + versionPolicy = "none"; + }; + }; + + meta = with lib; { + description = "A library that provides GObject bindings for libudev"; + homepage = "https://wiki.gnome.org/Projects/libgudev"; + maintainers = [ maintainers.eelco ] ++ teams.gnome.members; + platforms = platforms.linux; + license = licenses.lgpl2Plus; + }; +} |