mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 04:14:47 +02:00
build tf2-comp-fixes from source, and it only supports i686-linux
This commit is contained in:
parent
b3c3245b4c
commit
ee9177f40b
1 changed files with 14 additions and 13 deletions
|
|
@ -1,24 +1,23 @@
|
|||
{
|
||||
fetchzip,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
mkSourcemodPlugin,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
mkSourcemodPlugin (finalAttrs: {
|
||||
pname = "sourcemod-plugin-tf2-comp-fixes";
|
||||
version = "1.18.1";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/ldesgoui/tf2-comp-fixes/releases/download/v${finalAttrs.version}/tf2-comp-fixes.zip";
|
||||
sha256 = "sha256-m9dpVzn70cuxczgqiykdZmIrpdHF5Ckns2ipZYnwE+4=";
|
||||
stripRoot = false;
|
||||
src = fetchFromGitHub {
|
||||
owner = "ldesgoui";
|
||||
repo = "tf2-comp-fixes";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-58P6AMpneDJ/7ygaVB2yll6377rwtli+gQ4SRLNAMZc=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
plugins = ["scripting/tf2-comp-fixes.sp"];
|
||||
|
||||
mkdir $out
|
||||
mv addons $out/
|
||||
|
||||
runHook postInstall
|
||||
postInstall = ''
|
||||
mkdir -p $out/addons/sourcemod/gamedata
|
||||
cp gamedata/tf2-comp-fixes.games.txt $out/addons/sourcemod/gamedata
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
|
@ -28,4 +27,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta.platforms = ["i686-linux"];
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue