1{
2 lib,
3 buildDotnetModule,
4 dotnetCorePackages,
5 fetchFromGitHub,
6 libsecret,
7}:
8buildDotnetModule rec {
9 pname = "msgraph-cli";
10 version = "1.9.0";
11
12 src = fetchFromGitHub {
13 owner = "microsoftgraph";
14 repo = "msgraph-cli";
15 tag = "v${version}";
16 hash = "sha256-bpdxzVlQWQLNYTZHN25S6qa3NKHhDc+xV6NvzSNMVnQ=";
17 };
18
19 projectFile = "src/msgraph-cli.csproj";
20
21 nugetDeps = ./deps.json;
22
23 dotnet-sdk = dotnetCorePackages.sdk_8_0;
24 dotnet-runtime = dotnetCorePackages.runtime_8_0;
25
26 runtimeDeps = [ libsecret ];
27
28 passthru.updateScript = ./update.sh;
29 meta = with lib; {
30 mainProgram = "mgc";
31 description = "Microsoft Graph CLI";
32 homepage = "https://github.com/microsoftgraph/msgraph-cli";
33 license = licenses.mit;
34 maintainers = with maintainers; [ nazarewk ];
35 platforms = [
36 "aarch64-darwin"
37 "x86_64-darwin"
38 "x86_64-linux"
39 ];
40 };
41}