summary refs log tree commit diff
path: root/pkgs/development/libraries/libgudev/default.nix
blob: ef2a44bf183a770ca311b0d13ad912aecae409cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, pkgconfig, udev, glib }:

stdenv.mkDerivation rec {
  name = "libgudev-${version}";
  version = "231";

  src = fetchurl {
    url = "https://download.gnome.org/sources/libgudev/${version}/${name}.tar.xz";
    sha256 = "15iz0qp57qy5pjrblsn36l0chlncqggqsg8h8i8c71499afzj7iv";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ udev glib ];

  # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway.
  configureFlags = [ "--disable-umockdev" ];

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Projects/libgudev;
    maintainers = [ maintainers.eelco ];
    platforms = platforms.linux;
    license = licenses.lgpl2Plus;
  };
}