diff options
author | yuuko <yuuko@partyvan.io> | 2024-08-30 21:14:22 -0700 |
---|---|---|
committer | yuuko <yuuko@partyvan.io> | 2024-08-30 21:16:25 -0700 |
commit | 402758f0494c2e4826605b36a93bbbe703db9cbd (patch) | |
tree | 173be9f7fedd188c3167256b69ec90f0f9d9540f /srcds-pkgs/build-sm-plugin.nix | |
parent | 56449e59d7aabd1c06fb67a51a1e129b55cb9270 (diff) |
add sourcemodWithPackages, fix plugin build
Diffstat (limited to 'srcds-pkgs/build-sm-plugin.nix')
-rw-r--r-- | srcds-pkgs/build-sm-plugin.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/srcds-pkgs/build-sm-plugin.nix b/srcds-pkgs/build-sm-plugin.nix index d55338d..d0f05de 100644 --- a/srcds-pkgs/build-sm-plugin.nix +++ b/srcds-pkgs/build-sm-plugin.nix @@ -50,7 +50,7 @@ stdenvNoCC.mkDerivation ({ cd /build/scripting [ -d ./include ] && SPCOMPFLAGS="$SPCOMPFLAGS -i ./include" for plug in *.sp; do - spcomp -o "../plugins/disabled/''${plug%.sp}.smx" "$plug" + spcomp -o "../plugins/''${plug%.sp}.smx" "$plug" done runHook postBuild ''; @@ -58,10 +58,13 @@ stdenvNoCC.mkDerivation ({ installPhase = '' runHook preInstall cd /build + for plug in plugins/*.smx; do + mv $plug plugins/disabled/ + done find . -type d -empty -delete odir=$out/share/addons/sourcemod mkdir -p $odir - for d in scripting plugins translation gamedata; do + for d in scripting plugins translations gamedata; do [ -d $d ] && cp -r $d $odir/$d done runHook postInstall |