2019-11-02 13:30:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ninja
|
|
|
|
, meson
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
2020-12-02 15:52:26 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2019-11-02 13:30:56 +00:00
|
|
|
, glib
|
|
|
|
, libgudev
|
|
|
|
, libevdev
|
|
|
|
, gnome3
|
|
|
|
}:
|
2018-08-25 23:03:59 +00:00
|
|
|
|
2019-11-02 13:30:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-25 23:03:59 +00:00
|
|
|
pname = "libmanette";
|
2020-12-02 15:52:26 +00:00
|
|
|
version = "0.2.6";
|
2018-08-25 23:03:59 +00:00
|
|
|
|
2020-12-02 15:52:26 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-08-25 23:03:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-12-02 15:52:26 +00:00
|
|
|
sha256 = "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3";
|
2018-08-25 23:03:59 +00:00
|
|
|
};
|
|
|
|
|
2019-11-02 13:30:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
gobject-introspection
|
2020-12-02 15:52:26 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2019-11-02 13:30:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libgudev
|
|
|
|
libevdev
|
|
|
|
];
|
2018-08-25 23:03:59 +00:00
|
|
|
|
2020-12-02 15:52:26 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddoc=true"
|
|
|
|
];
|
|
|
|
|
2018-08-25 23:03:59 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple GObject game controller library";
|
2020-12-02 15:52:26 +00:00
|
|
|
homepage = "https://gnome.pages.gitlab.gnome.org/libmanette/";
|
2018-08-25 23:03:59 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2018-08-25 23:03:59 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|