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

37 lines
947 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ninja, meson, pkgconfig, vala, gobject-introspection
2018-08-26 01:03:59 +02:00
, glib, libgudev, libevdev, gnome3 }:
let
2019-03-11 19:38:39 +01:00
version = "0.2.2";
2018-08-26 01:03:59 +02:00
pname = "libmanette";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-03-11 19:38:39 +01:00
sha256 = "1lpprk2qz1lsqf9xj6kj2ciyc1zmjhj5lwd584qkh7jgz2x9y6wb";
2018-08-26 01:03:59 +02:00
};
nativeBuildInputs = [ meson ninja pkgconfig vala gobject-introspection ];
2018-08-26 01:03:59 +02:00
buildInputs = [ glib libgudev libevdev ];
doCheck = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "A simple GObject game controller library";
homepage = https://wiki.gnome.org/Apps/Builder;
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
platforms = platforms.unix;
};
}