mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
62 lines
1.3 KiB
Nix
62 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;
|
|
};
|
|
}
|