5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, vala
|
|
, gtk-doc
|
|
, docbook_xsl
|
|
, glib
|
|
, mesonEmulatorHook
|
|
, gnome
|
|
}:
|
|
|
|
# TODO: Add installed tests once https://gitlab.gnome.org/World/libcloudproviders/issues/4 is fixed
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcloudproviders";
|
|
version = "0.3.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libcloudproviders/${lib.versions.majorMinor version}/libcloudproviders-${version}.tar.xz";
|
|
hash = "sha256-O3URCzpP3vTFxaRA5IcB/gVNKuBh0VbIkTa7W6BedLc=";
|
|
};
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
mesonFlags = [
|
|
"-Denable-gtk-doc=true"
|
|
];
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
vala
|
|
gtk-doc
|
|
docbook_xsl
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "libcloudproviders";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "DBus API that allows cloud storage sync clients to expose their services";
|
|
homepage = "https://gitlab.gnome.org/World/libcloudproviders";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|