Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gobject-introspection, vala, gtk-doc, docbook_xsl, glib, mesonEmulatorHook }: 2 3# TODO: Add installed tests once https://gitlab.gnome.org/World/libcloudproviders/issues/4 is fixed 4 5stdenv.mkDerivation rec { 6 pname = "libcloudproviders"; 7 version = "0.3.1"; 8 9 src = fetchurl { 10 url = "https://gitlab.gnome.org/World/${pname}/repository/archive.tar.gz?ref=${version}"; 11 sha256 = "0zazjhj3xbwxyzi2b2aws7qdnwn092zg9yrk9v3wd19m3mxq5na3"; 12 }; 13 14 outputs = [ "out" "dev" "devdoc" ]; 15 16 mesonFlags = [ 17 "-Denable-gtk-doc=true" 18 ]; 19 20 strictDeps = true; 21 nativeBuildInputs = [ 22 meson 23 ninja 24 pkg-config 25 gobject-introspection 26 vala 27 gtk-doc 28 docbook_xsl 29 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 30 mesonEmulatorHook 31 ]; 32 33 buildInputs = [ glib ]; 34 35 meta = with lib; { 36 description = "DBus API that allows cloud storage sync clients to expose their services"; 37 homepage = "https://gitlab.gnome.org/World/libcloudproviders"; 38 license = licenses.lgpl3Plus; 39 maintainers = with maintainers; [ jtojnar ]; 40 platforms = platforms.unix; 41 }; 42}