yafc-ce: 2.11.1 -> 2.13.0 (#415000)
This commit is contained in:
@@ -12,16 +12,19 @@ let
|
||||
in
|
||||
buildDotnetModule (finalAttrs: {
|
||||
pname = "yafc-ce";
|
||||
version = "2.11.1";
|
||||
version = "2.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "shpaass";
|
||||
repo = "yafc-ce";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-n6twiCIQ1nMSidfmdl2py5wHvx4kk6skK0f8chXTCjQ=";
|
||||
hash = "sha256-FWGH/CDjfeewms0lKMMK3hGPCw6Xs40MdsbS/Cgif8s=";
|
||||
};
|
||||
|
||||
projectFile = [ "Yafc/Yafc.csproj" ];
|
||||
projectFile = [
|
||||
"Yafc.I18n.Generator/Yafc.I18n.Generator.csproj"
|
||||
"Yafc/Yafc.csproj"
|
||||
];
|
||||
testProjectFile = [ "Yafc.Model.Tests/Yafc.Model.Tests.csproj" ];
|
||||
nugetDeps = ./deps.json;
|
||||
|
||||
@@ -36,6 +39,13 @@ buildDotnetModule (finalAttrs: {
|
||||
SDL2_image
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Yafc finds the root by looking for a `.git` directory, but `.git` is
|
||||
# removed by Nix to ensure reproducibility. `.github` is not.
|
||||
substituteInPlace Yafc.I18n.Generator/SourceGenerator.cs \
|
||||
--replace-fail 'rootDirectory, ".git"' 'rootDirectory, ".github"'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Powerful Factorio calculator/analyser that works with mods, Community Edition";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user