Files
2026-06-03 13:21:16 +00:00

44 lines
1.2 KiB
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub,
nix-update-script,
}:
buildDotnetModule (finalAttrs: {
strictDeps = true;
__structuredAttrs = true;
pname = "source2viewer-cli";
version = "19.2";
src = fetchFromGitHub {
owner = "ValveResourceFormat";
repo = "ValveResourceFormat";
tag = finalAttrs.version;
hash = "sha256-4aUJlJWfNOqRXeLEHf8ZlXdcASGbmV2o1oFCcHpJG0w=";
};
projectFile = "CLI/CLI.csproj";
dotnet-sdk = dotnetCorePackages.sdk_10_0;
dotnet-runtime = dotnetCorePackages.runtime_10_0;
nugetDeps = ./deps.json;
executables = [ "Source2Viewer-CLI" ];
passthru.updateScript = ./update.sh;
meta = {
description = "Parser, decompiler, and exporter for Valve's Source 2 resource file format (VRF)";
homepage = "https://github.com/ValveResourceFormat/ValveResourceFormat";
changelog = "https://github.com/ValveResourceFormat/ValveResourceFormat/releases/tag/${finalAttrs.version}";
sourceProvenance = with lib.sourceTypes; [ fromSource ];
license = lib.licenses.mit;
mainProgram = "Source2Viewer-CLI";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ cr0n ];
};
})