2019-11-02 14:30:56 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ninja
|
|
|
|
, meson
|
|
|
|
, pkgconfig
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
|
|
|
, glib
|
|
|
|
, libgudev
|
|
|
|
, libevdev
|
|
|
|
, gnome3
|
|
|
|
}:
|
2018-08-26 01:03:59 +02:00
|
|
|
|
2019-11-02 14:30:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-26 01:03:59 +02:00
|
|
|
pname = "libmanette";
|
2019-11-02 14:30:56 +01:00
|
|
|
version = "0.2.3";
|
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";
|
2019-11-02 09:07:50 +01:00
|
|
|
sha256 = "1zxh7jn2zg7hivmal5zxam6fxvjsd1w6hlw0m2kysk76b8anbw60";
|
2018-08-26 01:03:59 +02:00
|
|
|
};
|
|
|
|
|
2019-11-02 14:30:56 +01: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";
|
2019-11-02 14:30:56 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/aplazas/libmanette";
|
2018-08-26 01:03:59 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|