mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 12:25:00 +02:00
package srctvplus
This commit is contained in:
parent
ee9177f40b
commit
a5e2b0ec6f
3 changed files with 54 additions and 0 deletions
|
|
@ -55,6 +55,7 @@
|
||||||
"sourcemod-include-library"
|
"sourcemod-include-library"
|
||||||
"sourcemod-include-steamworks"
|
"sourcemod-include-steamworks"
|
||||||
"srcds-tf2"
|
"srcds-tf2"
|
||||||
|
"srctvplus"
|
||||||
"sourcemod-addon-curl"
|
"sourcemod-addon-curl"
|
||||||
"sourcemod-addon-steamworks"
|
"sourcemod-addon-steamworks"
|
||||||
"sourcemod-addon-socket"
|
"sourcemod-addon-socket"
|
||||||
|
|
@ -81,6 +82,7 @@
|
||||||
sourcemod = true;
|
sourcemod = true;
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
sourcemod-plugin-soap-tf2dm
|
sourcemod-plugin-soap-tf2dm
|
||||||
|
srctvplus
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
testScript = pkgs:
|
testScript = pkgs:
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ in {
|
||||||
gamedir = "tf";
|
gamedir = "tf";
|
||||||
sdk = "tf2";
|
sdk = "tf2";
|
||||||
};
|
};
|
||||||
|
srctvplus = final.callPackage ./srctvplus.nix {};
|
||||||
steam-depots = listToAttrs (map (depot: {
|
steam-depots = listToAttrs (map (depot: {
|
||||||
name = "steam-depot-${toString depot.app_id}-${toString depot.depot_id}";
|
name = "steam-depot-${toString depot.app_id}-${toString depot.depot_id}";
|
||||||
value = final.callPackage ./depot.nix {
|
value = final.callPackage ./depot.nix {
|
||||||
|
|
|
||||||
51
nix/srcds/srctvplus.nix
Normal file
51
nix/srcds/srctvplus.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
stdenv,
|
||||||
|
nix-update-script,
|
||||||
|
prelink,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "srctvplus";
|
||||||
|
version = "3.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dalegaard";
|
||||||
|
repo = "srctvplus";
|
||||||
|
rev = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-vywrMllBxWf0TUShHJvfRCb4NXXrmiumG8AxNWooSMA=";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
prelink
|
||||||
|
];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-ftrampoline-impl=heap";
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
bash build.sh
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/addons
|
||||||
|
execstack -c srctvplus.so
|
||||||
|
cp srctvplus.vdf srctvplus.so $out/addons
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = nix-update-script {
|
||||||
|
extraArgs = [
|
||||||
|
"--flake"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta.platforms = ["i686-linux"];
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue