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

57 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, pkg-config
2021-03-21 01:21:42 +00:00
, meson
, ninja
, udev
, glib
, gobject-introspection
, gnome
2021-03-21 01:21:42 +00:00
, vala
}:
stdenv.mkDerivation rec {
2018-03-03 02:56:57 +00:00
pname = "libgudev";
2021-03-21 01:21:42 +00:00
version = "236";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-03-21 01:21:42 +00:00
sha256 = "094mgjmwgsgqrr1i0vd20ynvlkihvs3vgbmpbrhswjsrdp86j0z5";
};
2021-03-21 01:21:42 +00:00
nativeBuildInputs = [
pkg-config
gobject-introspection
meson
ninja
vala
];
2021-03-21 01:21:42 +00:00
buildInputs = [
udev
glib
];
mesonFlags = [
# There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway
"-Dtests=disabled"
];
2018-03-03 02:56:57 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-03 02:56:57 +00:00
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;
2017-04-01 10:26:36 +00:00
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}