From 402758f0494c2e4826605b36a93bbbe703db9cbd Mon Sep 17 00:00:00 2001 From: yuuko Date: Fri, 30 Aug 2024 21:14:22 -0700 Subject: add sourcemodWithPackages, fix plugin build --- srcds-pkgs/build-sm-plugin.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'srcds-pkgs/build-sm-plugin.nix') 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 -- cgit v1.2.3