vrcadvert: .NET 6 -> .NET 8 (#365007)
This commit is contained in:
@@ -3,25 +3,43 @@
|
||||
dotnetCorePackages,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildDotnetModule rec {
|
||||
pname = "VrcAdvert";
|
||||
pname = "vrcadvert";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "galister";
|
||||
repo = "VrcAdvert";
|
||||
rev = "v${version}";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-noIu5LV0yva94Kmdr39zb0kKXDaIrQ8DIplCj3aTIbQ=";
|
||||
};
|
||||
|
||||
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
||||
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
||||
dotnetFlags = [ "-p:RuntimeFrameworkVersion=${dotnet-runtime.version}" ];
|
||||
|
||||
nugetDeps = ./deps.json;
|
||||
|
||||
executables = [ "VrcAdvert" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace VrcAdvert.csproj \
|
||||
--replace-fail 'net6.0' 'net8.0'
|
||||
substituteInPlace global.json \
|
||||
--replace-fail '6.0.0' '8.0.0'
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgram = "${placeholder "out"}/bin/VrcAdvert";
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
description = "Advertise your OSC app through OSCQuery";
|
||||
homepage = "https://github.com/galister/VrcAdvert";
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
|
||||
set -eo pipefail
|
||||
|
||||
prev_version=$(nix eval --raw -f. vrcadvert.version)
|
||||
nix-update vrcadvert
|
||||
[[ $(nix eval --raw -f. vrcadvert.version) == "$prev_version" ]] ||
|
||||
$(nix-build . -A vrcadvert.fetch-deps --no-out-link)
|
||||
Reference in New Issue
Block a user