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

65 lines
1.1 KiB
Nix
Raw Normal View History

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