tetrio-desktop: add tetrio-plus option
This commit is contained in:
parent
cc3ea17877
commit
6885cfbb04
2 changed files with 34 additions and 0 deletions
|
@ -13,6 +13,9 @@
|
|||
, gtk3
|
||||
, libpulseaudio
|
||||
, systemd
|
||||
, callPackage
|
||||
, withTetrioPlus ? false
|
||||
, tetrio-plus ? callPackage ./tetrio-plus.nix { }
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -67,6 +70,10 @@ stdenv.mkDerivation rec {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = lib.strings.optionalString withTetrioPlus ''
|
||||
cp ${tetrio-plus} $out/opt/TETR.IO/resources/app.asar
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/opt/TETR.IO/tetrio-desktop \
|
||||
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/TETR.IO \
|
||||
|
|
27
pkgs/games/tetrio-desktop/tetrio-plus.nix
Normal file
27
pkgs/games/tetrio-desktop/tetrio-plus.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tetrio-plus";
|
||||
version = "0.23.13";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://gitlab.com/UniQMG/tetrio-plus/uploads/a9647feffc484304ee49c4d3fd4ce718/tetrio-plus_0.23.13_app.asar.zip";
|
||||
sha256 = "sha256-NSOVZjm4hDXH3f0gFG8ijLmdUTyMRFYGhxpwysoYIVg=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install app.asar $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "TETR.IO customization toolkit";
|
||||
homepage = "https://gitlab.com/UniQMG/tetrio-plus";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ huantian ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue