nixpkgs/pkgs/by-name/ya/yafc-ce/package.nix
2024-10-30 04:05:35 +00:00

59 lines
1.5 KiB
Nix

{
buildDotnetModule,
lib,
fetchFromGitHub,
dotnetCorePackages,
SDL2,
SDL2_image,
SDL2_ttf,
}:
let
dotnet = dotnetCorePackages.dotnet_8;
in
buildDotnetModule (finalAttrs: {
pname = "yafc-ce";
version = "2.1.0";
src = fetchFromGitHub {
owner = "shpaass";
repo = "yafc-ce";
rev = finalAttrs.version;
hash = "sha256-dh+lnilwQSrbZNcRGpEXybsNYxkihZUp5t8co06ZXYE=";
};
projectFile = [ "Yafc/Yafc.csproj" ];
testProjectFile = [ "Yafc.Model.Tests/Yafc.Model.Tests.csproj" ];
nugetDeps = ./deps.nix;
dotnet-sdk = dotnet.sdk;
dotnet-runtime = dotnet.runtime;
executables = [ "Yafc" ];
runtimeDeps = [
SDL2
SDL2_ttf
SDL2_image
];
meta = {
description = "Powerful Factorio calculator/analyser that works with mods, Community Edition";
longDescription = ''
Yet Another Factorio Calculator or YAFC is a planner and analyzer.
The main goal of YAFC is to help with heavily modded Factorio games.
YAFC Community Edition is an updated and actively-maintained version of the original YAFC.
'';
homepage = "https://github.com/shpaass/yafc-ce";
downloadPage = "https://github.com/shpaass/yafc-ce/releases/tag/${finalAttrs.version}";
changelog = "https://github.com/shpaass/yafc-ce/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [
diamond-deluxe
TheColorman
];
platforms = with lib.platforms; x86_64 ++ darwin;
mainProgram = "Yafc";
};
})