mirror of
https://codeberg.org/spire/nix.git
synced 2026-11-30 11:30:45 +01:00
package sourcetvmanager
This commit is contained in:
parent
703a7cbb25
commit
2314bc2e1b
5 changed files with 74 additions and 0 deletions
|
|
@ -55,11 +55,13 @@
|
||||||
"sourcemod-include-library"
|
"sourcemod-include-library"
|
||||||
"sourcemod-include-steamworks"
|
"sourcemod-include-steamworks"
|
||||||
"sourcemod-include-json"
|
"sourcemod-include-json"
|
||||||
|
"sourcemod-include-sourcetvmanager"
|
||||||
"srcds-tf2"
|
"srcds-tf2"
|
||||||
"srctvplus"
|
"srctvplus"
|
||||||
"sourcemod-addon-curl"
|
"sourcemod-addon-curl"
|
||||||
"sourcemod-addon-steamworks"
|
"sourcemod-addon-steamworks"
|
||||||
"sourcemod-addon-socket"
|
"sourcemod-addon-socket"
|
||||||
|
"sourcemod-addon-sourcetvmanager"
|
||||||
"sourcemod-plugin-soap-tf2dm"
|
"sourcemod-plugin-soap-tf2dm"
|
||||||
"sourcemod-plugin-progressive-ruleset-timer"
|
"sourcemod-plugin-progressive-ruleset-timer"
|
||||||
"sourcemod-plugin-tf2-comp-fixes"
|
"sourcemod-plugin-tf2-comp-fixes"
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,5 @@ final: prev: {
|
||||||
sourcemod-addon-curl = final.callPackage ./curl.nix {};
|
sourcemod-addon-curl = final.callPackage ./curl.nix {};
|
||||||
sourcemod-addon-steamworks = final.callPackage ./steamworks.nix {};
|
sourcemod-addon-steamworks = final.callPackage ./steamworks.nix {};
|
||||||
sourcemod-addon-socket = final.callPackage ./socket.nix {};
|
sourcemod-addon-socket = final.callPackage ./socket.nix {};
|
||||||
|
sourcemod-addon-sourcetvmanager = final.callPackage ./sourcetvmanager.nix {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
51
nix/sourcemod/addons/sourcetvmanager.nix
Normal file
51
nix/sourcemod/addons/sourcetvmanager.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
stdenv,
|
||||||
|
nix-update-script,
|
||||||
|
sourcemod,
|
||||||
|
ambuild,
|
||||||
|
hl2sdk,
|
||||||
|
sourcepawn,
|
||||||
|
metamod-source,
|
||||||
|
system,
|
||||||
|
lib,
|
||||||
|
}: let
|
||||||
|
inherit (lib) optionalString;
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "sourcemod-addon-sourcetvmanager";
|
||||||
|
version = "1.3-beta1";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "peace-maker";
|
||||||
|
repo = "sourcetvmanager";
|
||||||
|
rev = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-4yhVwwouaMCvviwnuyhEMhzwZlBlObNZQg6KrMa86hQ=";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ambuild];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
python ../configure.py --enable-optimize -s tf2 --hl2sdk-root ${hl2sdk.tf2} --sm-path ${sourcemod.src} --mms-path ${metamod-source.src}
|
||||||
|
ambuild
|
||||||
|
|
||||||
|
cp -r package $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = nix-update-script {
|
||||||
|
extraArgs = [
|
||||||
|
"--flake"
|
||||||
|
"--version=unstable"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
@ -4,4 +4,5 @@ final: prev: {
|
||||||
sourcemod-include-curl = final.callPackage ./curl.nix {};
|
sourcemod-include-curl = final.callPackage ./curl.nix {};
|
||||||
sourcemod-include-steamworks = final.callPackage ./steamworks.nix {};
|
sourcemod-include-steamworks = final.callPackage ./steamworks.nix {};
|
||||||
sourcemod-include-json = final.callPackage ./json.nix {};
|
sourcemod-include-json = final.callPackage ./json.nix {};
|
||||||
|
sourcemod-include-sourcetvmanager = final.callPackage ./sourcetvmanager.nix {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
19
nix/sourcemod/includes/sourcetvmanager.nix
Normal file
19
nix/sourcemod/includes/sourcetvmanager.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
nix-update-script,
|
||||||
|
sourcemod-addon-sourcetvmanager,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "sourcemod-include-sourcetvmanager";
|
||||||
|
|
||||||
|
inherit (sourcemod-addon-sourcetvmanager) version src;
|
||||||
|
|
||||||
|
doConfigure = false;
|
||||||
|
doBuild = false;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/addons/sourcemod/scripting/include
|
||||||
|
cp sourcetvmanager.inc $out/addons/sourcemod/scripting/include/sourcetvmanager.inc
|
||||||
|
'';
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue