nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 36 lines 947 B view raw
1{ stdenv, fetchurl, ninja, meson, pkgconfig, vala, gobject-introspection 2, glib, libgudev, libevdev, gnome3 }: 3 4let 5 version = "0.2.1"; 6 pname = "libmanette"; 7in 8stdenv.mkDerivation { 9 name = "${pname}-${version}"; 10 11 outputs = [ "out" "dev" ]; 12 13 src = fetchurl { 14 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 15 sha256 = "14vqz30p4693yy3yxs0gj858x25sl2kawib1g9lj8g5frgl0hd82"; 16 }; 17 18 nativeBuildInputs = [ meson ninja pkgconfig vala gobject-introspection ]; 19 buildInputs = [ glib libgudev libevdev ]; 20 21 doCheck = true; 22 23 passthru = { 24 updateScript = gnome3.updateScript { 25 packageName = pname; 26 }; 27 }; 28 29 meta = with stdenv.lib; { 30 description = "A simple GObject game controller library"; 31 homepage = https://wiki.gnome.org/Apps/Builder; 32 license = licenses.lgpl21Plus; 33 maintainers = gnome3.maintainers; 34 platforms = platforms.unix; 35 }; 36}