aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/mkdepot.nix
diff options
context:
space:
mode:
authoryuuko <yuuko@partyvan.io>2024-08-30 21:14:22 -0700
committeryuuko <yuuko@partyvan.io>2024-08-30 21:16:25 -0700
commit402758f0494c2e4826605b36a93bbbe703db9cbd (patch)
tree173be9f7fedd188c3167256b69ec90f0f9d9540f /srcds-pkgs/mkdepot.nix
parent56449e59d7aabd1c06fb67a51a1e129b55cb9270 (diff)
add sourcemodWithPackages, fix plugin build
Diffstat (limited to 'srcds-pkgs/mkdepot.nix')
-rw-r--r--srcds-pkgs/mkdepot.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/srcds-pkgs/mkdepot.nix b/srcds-pkgs/mkdepot.nix
index 8c1acaa..26d364b 100644
--- a/srcds-pkgs/mkdepot.nix
+++ b/srcds-pkgs/mkdepot.nix
@@ -1,5 +1,8 @@
{ lib, runCommand, fetchDepotFile }:
-name: caches: ps:
+{ name
+, caches
+, postScript ? ""
+}:
with lib;
let
emitStep = { FileName, Flags, Chunks, ... }@file:
@@ -15,5 +18,5 @@ let
in concatMapStrings mkStep (importJSON json).Files;
in runCommand name {} ''
${concatMapStringsSep "\n" emitManifest caches}
- ${ps}
+ ${postScript}
''