mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
dbus,
|
|
apple-sdk_14,
|
|
darwinMinVersionHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "gws";
|
|
version = "0.22.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleworkspace";
|
|
repo = "cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Bj4gPklufU6p2JpvN6j7QViv7ghSn52jemeXPVXkhlk=";
|
|
};
|
|
|
|
cargoHash = "sha256-8vVTACodxxju4x19bNzDKM5xn6btV1UCh+5GUxS70S8=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
lib.optionals stdenv.hostPlatform.isLinux [ dbus ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
apple-sdk_14
|
|
(darwinMinVersionHook "10.15")
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "One CLI for all of Google Workspace";
|
|
homepage = "https://github.com/googleworkspace/cli";
|
|
changelog = "https://github.com/googleworkspace/cli/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "gws";
|
|
maintainers = with lib.maintainers; [ imalison ];
|
|
};
|
|
})
|