treewide: fix typo in runHook (#387278)

This commit is contained in:
Pol Dellaiera
2025-03-05 16:41:22 +01:00
committed by GitHub
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -38,13 +38,13 @@ stdenv.mkDerivation {
'';
buildPhase = ''
runHook prebuild
runHook preBuild
# ignore the exit code as the installer
# fails at optional steps due to read only FHS
${buildEnv}/bin/${buildEnv.pname} -c "./${src.name} --mode unattended --prefix bin || true"
runHook postbuild
runHook postBuild
'';
installPhase = ''
+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