567e8dfd8e
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>
42 lines
899 B
Nix
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"
|
|
];
|
|
};
|
|
}
|