2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildDotnetModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
dotnetCorePackages,
|
|
|
|
mono,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "bicep";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.30.3";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Azure";
|
|
|
|
repo = "bicep";
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-JJNiVANq5WyiNnl6TsXPtLdsX4AKMcDIBzatwRPnbFM=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/Directory.Build.props --replace-fail "<TreatWarningsAsErrors>true</TreatWarningsAsErrors>" ""
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
projectFile = "src/Bicep.Cli/Bicep.Cli.csproj";
|
|
|
|
|
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
|
|
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); # mono is not available on aarch64-darwin
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [ mono ];
|
|
|
|
|
|
|
|
testProjectFile = "src/Bicep.Cli.UnitTests/Bicep.Cli.UnitTests.csproj";
|
|
|
|
|
|
|
|
passthru.updateScript = ./updater.sh;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Domain Specific Language (DSL) for deploying Azure resources declaratively";
|
|
|
|
homepage = "https://github.com/Azure/bicep/";
|
|
|
|
changelog = "https://github.com/Azure/bicep/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ khaneliman ] ++ lib.teams.stridtech.members;
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "bicep";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
}
|