summaryrefslogtreecommitdiffstats
path: root/pkgs/games/BeatSaberModManager/default.nix
diff options
context:
space:
mode:
authorAtemu <atemu.main@gmail.com>2022-10-19 02:14:28 +0200
committerAtemu <atemu.main@gmail.com>2022-10-19 02:14:28 +0200
commit4d6a7480991970801c0d195eebac90180026367b (patch)
tree19530875303f5a0834b0ae6fe4f0ff6e7fea4928 /pkgs/games/BeatSaberModManager/default.nix
parentea570d1ed3a1779ed48109766998480d7e2a9e87 (diff)
BeatSaberModManager: use substituteAll instead of custom postPatch
Diffstat (limited to 'pkgs/games/BeatSaberModManager/default.nix')
-rw-r--r--pkgs/games/BeatSaberModManager/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/games/BeatSaberModManager/default.nix b/pkgs/games/BeatSaberModManager/default.nix
index b8a533ed265b..e726644c21dc 100644
--- a/pkgs/games/BeatSaberModManager/default.nix
+++ b/pkgs/games/BeatSaberModManager/default.nix
@@ -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;