libmsgraph: init at 0.2.1

Co-Authored-By: Maxine Aubrey <max@ine.dev>

authored by Bobby Rong Maxine Aubrey and committed by Maxine Aubrey 90cd4bd2 be41b088

+73
+73
pkgs/by-name/li/libmsgraph/package.nix
···
··· 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , gi-docgen 5 + , gobject-introspection 6 + , meson 7 + , ninja 8 + , pkg-config 9 + , uhttpmock_1_0 10 + , glib 11 + , gnome-online-accounts 12 + , json-glib 13 + , librest_1_0 14 + , libsoup_3 15 + , gnome 16 + }: 17 + 18 + stdenv.mkDerivation (finalAttrs: { 19 + pname = "libmsgraph"; 20 + version = "0.2.1"; 21 + 22 + outputs = [ "out" "dev" "devdoc" ]; 23 + 24 + src = fetchurl { 25 + url = "mirror://gnome/sources/msgraph/${lib.versions.majorMinor finalAttrs.version}/msgraph-${finalAttrs.version}.tar.xz"; 26 + hash = "sha256-4OWeqorj4KSOwKbC/tBHCFanCSSOkhK2odA33leS7Ls="; 27 + }; 28 + 29 + nativeBuildInputs = [ 30 + gi-docgen 31 + gobject-introspection 32 + meson 33 + ninja 34 + pkg-config 35 + ]; 36 + 37 + buildInputs = [ 38 + uhttpmock_1_0 39 + ]; 40 + 41 + propagatedBuildInputs = [ 42 + glib 43 + gnome-online-accounts 44 + json-glib 45 + librest_1_0 46 + libsoup_3 47 + ]; 48 + 49 + mesonFlags = [ 50 + # https://gitlab.gnome.org/GNOME/msgraph/-/merge_requests/9 51 + "-Dc_args=-Wno-error=format-security" 52 + ]; 53 + 54 + postFixup = '' 55 + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. 56 + moveToOutput "share/doc/msgraph-0" "$devdoc" 57 + ''; 58 + 59 + passthru = { 60 + updateScript = gnome.updateScript { 61 + attrPath = "libmsgraph"; 62 + packageName = "msgraph"; 63 + }; 64 + }; 65 + 66 + meta = with lib; { 67 + description = "Library to access MS Graph API for Office 365"; 68 + homepage = "https://gitlab.gnome.org/GNOME/msgraph"; 69 + license = licenses.lgpl3Plus; 70 + maintainers = teams.gnome.members; 71 + platforms = platforms.linux; 72 + }; 73 + })