Unverified Commit da2d09d8 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

treewide: fix typo in runHook (#387278)

parents f6304d35 1f3be5a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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