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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 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
, gnome
}:
2018-08-26 01:03:59 +02:00
stdenv.mkDerivation rec {
2018-08-26 01:03:59 +02:00
pname = "libmanette";
version = "0.2.6";
2018-08-26 01:03:59 +02:00
outputs = [ "out" "dev" "devdoc" ];
2018-08-26 01:03:59 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3";
2018-08-26 01:03:59 +02: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 01:03:59 +02:00
mesonFlags = [
"-Ddoc=true"
];
2018-08-26 01:03:59 +02:00
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
2018-08-26 01:03:59 +02:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-08-26 01:03:59 +02:00
};
};
meta = with lib; {
2018-08-26 01:03:59 +02:00
description = "A simple GObject game controller library";
homepage = "https://gnome.pages.gitlab.gnome.org/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;
};
}