mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
BeatSaberModManager: use substituteAll instead of custom postPatch
This commit is contained in:
parent
ea570d1ed3
commit
4d6a748099
@ -4,7 +4,7 @@
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<ApplicationIcon>Resources/Icons/Icon.ico</ApplicationIcon>
|
||||
+ <RuntimeIdentifier>@RuntimeIdentifier@</RuntimeIdentifier>
|
||||
+ <RuntimeIdentifier>@runtimeIdentifier@</RuntimeIdentifier>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||
|
@ -2,6 +2,7 @@
|
||||
lib,
|
||||
dotnet-sdk,
|
||||
targetPlatform,
|
||||
substituteAll,
|
||||
|
||||
buildDotnetModule,
|
||||
fetchFromGitHub,
|
||||
@ -27,11 +28,12 @@ buildDotnetModule rec {
|
||||
# This _must_ be specified in the project file and it can only be one so
|
||||
# obviously you wouldn't specify it as an upstream project. Typical M$.
|
||||
# https://github.com/NixOS/nixpkgs/pull/196648#discussion_r998709996
|
||||
patches = [ ./add-runtime-identifier.patch ];
|
||||
postPatch = ''
|
||||
substituteInPlace BeatSaberModManager/BeatSaberModManager.csproj \
|
||||
--replace @RuntimeIdentifier@ "${dotnet-sdk.passthru.systemToDotnetRid targetPlatform.system}"
|
||||
'';
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./add-runtime-identifier.patch;
|
||||
runtimeIdentifier = dotnet-sdk.passthru.systemToDotnetRid targetPlatform.system;
|
||||
})
|
||||
];
|
||||
|
||||
nugetDeps = ./deps.nix;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user