tetrio-plus: fix typo in runHook

This commit is contained in:
Pol Dellaiera
2025-03-05 13:26:10 +01:00
parent 3f41d626f6
commit 1f3be5a7e1
+6 -6
View File
@@ -14,12 +14,12 @@
let
version = "0.27.5";
rev = "electron-v${version}-tetrio-v${tetrio-desktop.version}";
tag = "electron-v${version}-tetrio-v${tetrio-desktop.version}";
src = fetchFromGitLab {
owner = "UniQMG";
repo = "tetrio-plus";
inherit rev;
inherit tag;
hash = "sha256-hbHofrC2dJOh2kh3VLb/d0dHrcszyqTyID1PAaGApxY=";
};
@@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preBuild
# tetrio-plus expects the vanilla asar to be extracted into 'out' and
# 'out' is the directory contianing the final patched asar's contents
# 'out' is the directory containing the final patched asar's contents
asar extract ${tetrio-desktop.src}/opt/TETR.IO/resources/app.asar out
# Install custom package.json/yarn.lock that describe the additional node
@@ -83,11 +83,11 @@ stdenv.mkDerivation (finalAttrs: {
'';
installPhase = ''
runHook preinstall
runHook preInstall
asar pack out $out
runHook postinstall
runHook postInstall
'';
meta = {
@@ -97,7 +97,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
homepage = "https://gitlab.com/UniQMG/tetrio-plus";
downloadPage = "https://gitlab.com/UniQMG/tetrio-plus/-/releases";
changelog = "https://gitlab.com/UniQMG/tetrio-plus/-/releases/${rev}";
changelog = "https://gitlab.com/UniQMG/tetrio-plus/-/releases/${tag}";
license = [
lib.licenses.mit
# while tetrio-plus is itself mit, the result of this derivation