aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/build-sm-plugin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'srcds-pkgs/build-sm-plugin.nix')
-rw-r--r--srcds-pkgs/build-sm-plugin.nix7
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