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

55 lines
969 B
Nix
Raw Normal View History

{ stdenv
, fetchurl
, ninja
, meson
, pkgconfig
, vala
, gobject-introspection
, glib
, libgudev
, libevdev
, gnome3
}:
2018-08-26 01:03:59 +02:00
stdenv.mkDerivation rec {
2018-08-26 01:03:59 +02:00
pname = "libmanette";
version = "0.2.4";
2018-08-26 01:03:59 +02:00
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g";
2018-08-26 01:03:59 +02:00
};
nativeBuildInputs = [
meson
ninja
pkgconfig
vala
gobject-introspection
];
buildInputs = [
glib
libgudev
libevdev
];
2018-08-26 01:03:59 +02:00
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";
2018-08-26 01:03:59 +02:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2018-08-26 01:03:59 +02:00
platforms = platforms.unix;
};
}