tetrio-desktop: add tetrio-plus option

authored by huantian and committed by Yt 6885cfbb cc3ea178

+34
+7
pkgs/games/tetrio-desktop/default.nix
··· 13 13 , gtk3 14 14 , libpulseaudio 15 15 , systemd 16 + , callPackage 17 + , withTetrioPlus ? false 18 + , tetrio-plus ? callPackage ./tetrio-plus.nix { } 16 19 }: 17 20 18 21 stdenv.mkDerivation rec { ··· 66 69 67 70 runHook postInstall 68 71 ''; 72 + 73 + postInstall = lib.strings.optionalString withTetrioPlus '' 74 + cp ${tetrio-plus} $out/opt/TETR.IO/resources/app.asar 75 + ''; 69 76 70 77 postFixup = '' 71 78 wrapProgram $out/opt/TETR.IO/tetrio-desktop \
+27
pkgs/games/tetrio-desktop/tetrio-plus.nix
··· 1 + { lib, stdenv, fetchzip }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "tetrio-plus"; 5 + version = "0.23.13"; 6 + 7 + src = fetchzip { 8 + url = "https://gitlab.com/UniQMG/tetrio-plus/uploads/a9647feffc484304ee49c4d3fd4ce718/tetrio-plus_0.23.13_app.asar.zip"; 9 + sha256 = "sha256-NSOVZjm4hDXH3f0gFG8ijLmdUTyMRFYGhxpwysoYIVg="; 10 + }; 11 + 12 + installPhase = '' 13 + runHook preInstall 14 + 15 + install app.asar $out 16 + 17 + runHook postInstall 18 + ''; 19 + 20 + meta = with lib; { 21 + description = "TETR.IO customization toolkit"; 22 + homepage = "https://gitlab.com/UniQMG/tetrio-plus"; 23 + license = licenses.mit; 24 + maintainers = with maintainers; [ huantian ]; 25 + platforms = [ "x86_64-linux" ]; 26 + }; 27 + }