package sourcemod-plugin-steamworks

This commit is contained in:
Robin Appelman 2026-07-09 19:16:19 +02:00
commit 63a39678c2
4 changed files with 28 additions and 1 deletions

View file

@ -55,6 +55,7 @@
"sourcemod-include-library"
"sourcemod-include-steamworks"
"srcds-tf2"
"sourcemod-plugin-steamworks"
]
// {
test = pkgs:

View file

@ -1,4 +1,5 @@
final: prev: {
final: prev:
{
hl2sdk = (import ./hl2sdk.nix) {
inherit (final) fetchFromGitHub lib nix-update-script;
inherit (final.stdenvNoCC) mkDerivation;
@ -15,3 +16,4 @@ final: prev: {
sourcemod-include-curl = final.callPackage ./includes/curl.nix {};
sourcemod-include-steamworks = final.callPackage ./includes/steamworks.nix {};
}
// (import ./plugins/overlay.nix) final prev

View file

@ -0,0 +1,3 @@
final: prev: {
sourcemod-plugin-steamworks = final.callPackage ./steamworks.nix {};
}

View file

@ -0,0 +1,21 @@
{
fetchurl,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sourcemod-plugin-steamworks";
version = "1.2.3c";
src = fetchurl {
url = "https://github.com/KyleSanderson/SteamWorks/releases/download/${finalAttrs.version}/package-lin.tgz";
sha256 = "sha256-Znnm39GdTHinHSJP8/fXLZvsvCVggu1LzoXLqh4BJxM=";
};
installPhase = ''
runHook preInstall
mkdir $out
mv addons $out/
runHook postInstall
'';
})