mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
dotnetCorePackages,
|
|
mono,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "bicep";
|
|
version = "0.29.47";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "bicep";
|
|
rev = "v${version}";
|
|
hash = "sha256-KdaoOejoM/3P1WwDCjDhChOpKA7c4UulPLK7IOVw3o4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/Directory.Build.props --replace-fail "<TreatWarningsAsErrors>true</TreatWarningsAsErrors>" ""
|
|
'';
|
|
|
|
projectFile = "src/Bicep.Cli/Bicep.Cli.csproj";
|
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
|
|
|
doCheck = !(stdenv.isDarwin && stdenv.isAarch64); # mono is not available on aarch64-darwin
|
|
|
|
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;
|
|
maintainers = with lib.maintainers; [ khaneliman ] ++ lib.teams.stridtech.members;
|
|
mainProgram = "bicep";
|
|
};
|
|
}
|