mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
tetrio-desktop: add tetrio-plus option
This commit is contained in:
parent
cc3ea17877
commit
6885cfbb04
@ -13,6 +13,9 @@
|
|||||||
, gtk3
|
, gtk3
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, systemd
|
, systemd
|
||||||
|
, callPackage
|
||||||
|
, withTetrioPlus ? false
|
||||||
|
, tetrio-plus ? callPackage ./tetrio-plus.nix { }
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -67,6 +70,10 @@ stdenv.mkDerivation rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = lib.strings.optionalString withTetrioPlus ''
|
||||||
|
cp ${tetrio-plus} $out/opt/TETR.IO/resources/app.asar
|
||||||
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/opt/TETR.IO/tetrio-desktop \
|
wrapProgram $out/opt/TETR.IO/tetrio-desktop \
|
||||||
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/TETR.IO \
|
--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 New Issue
Block a user