Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
buildDotnetModule,
|
|
buildGoModule,
|
|
dotnetCorePackages,
|
|
versionCheckHook,
|
|
}:
|
|
let
|
|
version = "4.0.7030";
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "azure-functions-core-tools";
|
|
tag = version;
|
|
hash = "sha256-ibbXUg2VHN2yJk6qwLwDbxcO0XArFFb7XMUCfKH0Tkw=";
|
|
};
|
|
gozip = buildGoModule {
|
|
pname = "gozip";
|
|
inherit version;
|
|
src = src + "/tools/go/gozip";
|
|
vendorHash = null;
|
|
};
|
|
in
|
|
buildDotnetModule {
|
|
pname = "azure-functions-core-tools";
|
|
inherit src version;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.sdk_8_0;
|
|
dotnetFlags = [ "-p:TargetFramework=net8.0" ];
|
|
nugetDeps = ./deps.json;
|
|
useDotnetFromEnv = true;
|
|
executables = [ "func" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/Azure.Functions.Cli/Common/CommandChecker.cs \
|
|
--replace-fail "CheckExitCode(\"/bin/bash" "CheckExitCode(\"${stdenv.shell}"
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/bin
|
|
ln -s ${gozip}/bin/gozip $out/bin/gozip
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Azure/azure-functions-core-tools";
|
|
description = "Command line tools for Azure Functions";
|
|
mainProgram = "func";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
mdarocha
|
|
detegr
|
|
];
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
};
|
|
}
|