2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-11-02 13:30:56 +00:00
|
|
|
, fetchurl
|
|
|
|
, ninja
|
|
|
|
, meson
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-11-02 13:30:56 +00:00
|
|
|
, 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-26 00:03:59 +01:00
|
|
|
|
2019-11-02 13:30:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-26 00:03:59 +01:00
|
|
|
pname = "libmanette";
|
2020-12-02 15:52:26 +00:00
|
|
|
version = "0.2.6";
|
2018-08-26 00:03:59 +01:00
|
|
|
|
2020-12-02 15:52:26 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-08-26 00:03:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-12-02 15:52:26 +00:00
|
|
|
sha256 = "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3";
|
2018-08-26 00:03:59 +01:00
|
|
|
};
|
|
|
|
|
2019-11-02 13:30:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-11-02 13:30:56 +00:00
|
|
|
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-26 00:03:59 +01:00
|
|
|
|
2020-12-02 15:52:26 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddoc=true"
|
|
|
|
];
|
|
|
|
|
2018-08-26 00:03:59 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-08-26 00:03:59 +01:00
|
|
|
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-26 00:03:59 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-08-26 00:03:59 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|