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
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
buildDotnetModule,
|
|
dotnetCorePackages,
|
|
lib,
|
|
testers,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildDotnetModule (finalAttrs: {
|
|
pname = "empire-compiler";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bc-security";
|
|
repo = "empire-compiler";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-HV61N76yNh16TL93L0LlBWBar1/AzHNX5/zsxl65AGM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace EmpireCompiler/EmpireCompiler.csproj \
|
|
--replace-fail 'net6.0' 'net9.0'
|
|
'';
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_9_0;
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_9_0;
|
|
nugetDeps = ./deps.json;
|
|
|
|
projectFile = "EmpireCompiler/EmpireCompiler.csproj";
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
command = "EmpireCompiler --version";
|
|
version = "${finalAttrs.version}";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/BC-SECURITY/Empire-Compiler";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
description = "C# Compiler for Empire";
|
|
maintainers = with lib.maintainers; [
|
|
fzakaria
|
|
vrose
|
|
];
|
|
};
|
|
})
|