Files
nixpkgs/pkgs/by-name/ms/msgraph-cli/package.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
899 B
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
libsecret,
}:
buildDotnetModule rec {
pname = "msgraph-cli";
version = "1.9.0";
src = fetchFromGitHub {
owner = "microsoftgraph";
repo = "msgraph-cli";
tag = "v${version}";
hash = "sha256-bpdxzVlQWQLNYTZHN25S6qa3NKHhDc+xV6NvzSNMVnQ=";
};
projectFile = "src/msgraph-cli.csproj";
nugetDeps = ./deps.json;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
runtimeDeps = [ libsecret ];
passthru.updateScript = ./update.sh;
meta = {
mainProgram = "mgc";
description = "Microsoft Graph CLI";
homepage = "https://github.com/microsoftgraph/msgraph-cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nazarewk ];
platforms = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
};
}