about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libmanette/default.nix
blob: eb3cbf4bfef0dbfe3dba8c8612f1f9aa106e643c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ stdenv
, fetchurl
, ninja
, meson
, pkgconfig
, vala
, gobject-introspection
, glib
, libgudev
, libevdev
, gnome3
}:

stdenv.mkDerivation rec {
  pname = "libmanette";
  version = "0.2.4";

  outputs = [ "out" "dev" ];

  src = fetchurl {
    url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkgconfig
    vala
    gobject-introspection
  ];

  buildInputs = [
    glib
    libgudev
    libevdev
  ];

  doCheck = true;

  passthru = {
    updateScript = gnome3.updateScript {
      packageName = pname;
    };
  };

  meta = with stdenv.lib; {
    description = "A simple GObject game controller library";
    homepage = "https://gitlab.gnome.org/aplazas/libmanette";
    license = licenses.lgpl21Plus;
    maintainers = teams.gnome.members;
    platforms = platforms.unix;
  };
}