aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'srcds-pkgs/plugins')
-rw-r--r--srcds-pkgs/plugins/Updater.nix12
-rw-r--r--srcds-pkgs/plugins/ftz_cheats.nix11
2 files changed, 12 insertions, 11 deletions
diff --git a/srcds-pkgs/plugins/Updater.nix b/srcds-pkgs/plugins/Updater.nix
index 3c252fd..040e130 100644
--- a/srcds-pkgs/plugins/Updater.nix
+++ b/srcds-pkgs/plugins/Updater.nix
@@ -1,18 +1,18 @@
-{ fetchzip, buildSMPlugin, ed
+{ requireFile, unzip, buildSMPlugin, ed
, SM-neocurl-ext, SteamTools, SteamWorks, socket
}:
buildSMPlugin rec {
pname = "Updater";
version = "1.2.1";
- src = fetchzip {
+ src = requireFile {
url = "https://forums.alliedmods.net/attachment.php?attachmentid=183438";
- extension = "zip";
- stripRoot = false;
- hash = "sha256-M+kUvHzwiJXOGIdbUql5nbFdCPdzYdRM1BCq6Y8Fuls=";
+ name = "updater.zip";
+ hash = "sha256-eELedPMz7Em9LmTrNyJOt/v4Azdqap8h/bDhn0Bf19U=";
};
- nativeBuildInputs = [ ed ];
+ nativeBuildInputs = [ unzip ed ];
+ unpackCmd = "mkdir src; pushd src; unzip ${src}; popd";
buildInputs = [ SM-neocurl-ext SteamTools SteamWorks socket ];
postPatch = ''
diff --git a/srcds-pkgs/plugins/ftz_cheats.nix b/srcds-pkgs/plugins/ftz_cheats.nix
index 3e8d32c..a424b90 100644
--- a/srcds-pkgs/plugins/ftz_cheats.nix
+++ b/srcds-pkgs/plugins/ftz_cheats.nix
@@ -1,14 +1,15 @@
-{ lib, fetchzip, buildSMPlugin, smlib }:
+{ lib, requireFile, unzip, buildSMPlugin, smlib }:
buildSMPlugin rec {
pname = "ftz_cheats";
version = "1.1";
- src = fetchzip {
+ src = requireFile {
url = "https://forums.alliedmods.net/attachment.php?attachmentid=109393";
- extension = "zip";
- stripRoot = false;
- hash = "sha256-05RRJuIldc6gvYkYcpQokFwKYvR+wMCgy7KylUi1vTY=";
+ name = "ftz_cheats.zip";
+ hash = "sha256-+nsCjOQ55VwP1Wn08BBWkDjbxWOdfQ9oFfzUTpnxJCo=";
};
buildInputs = [ smlib ];
+ nativeBuildInputs = [ unzip ];
+ unpackCmd = "mkdir -p src; pushd src; unzip ${src}; popd";
}