mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 12:25:00 +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,
|
fetchFromGitHub,
|
||||||
stdenvNoCC,
|
mkSourcemodPlugin,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
mkSourcemodPlugin (finalAttrs: {
|
||||||
pname = "sourcemod-plugin-tf2-comp-fixes";
|
pname = "sourcemod-plugin-tf2-comp-fixes";
|
||||||
version = "1.18.1";
|
version = "1.18.1";
|
||||||
src = fetchzip {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/ldesgoui/tf2-comp-fixes/releases/download/v${finalAttrs.version}/tf2-comp-fixes.zip";
|
owner = "ldesgoui";
|
||||||
sha256 = "sha256-m9dpVzn70cuxczgqiykdZmIrpdHF5Ckns2ipZYnwE+4=";
|
repo = "tf2-comp-fixes";
|
||||||
stripRoot = false;
|
tag = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-58P6AMpneDJ/7ygaVB2yll6377rwtli+gQ4SRLNAMZc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
plugins = ["scripting/tf2-comp-fixes.sp"];
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir $out
|
postInstall = ''
|
||||||
mv addons $out/
|
mkdir -p $out/addons/sourcemod/gamedata
|
||||||
|
cp gamedata/tf2-comp-fixes.games.txt $out/addons/sourcemod/gamedata
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
@ -28,4 +27,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
meta.platforms = ["i686-linux"];
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue