fix tetrio plus
This commit is contained in:
@@ -4,13 +4,8 @@ let
|
|||||||
screenshot = pkgs.writeShellScriptBin "screenshot.sh" ''
|
screenshot = pkgs.writeShellScriptBin "screenshot.sh" ''
|
||||||
${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i
|
${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i
|
||||||
'';
|
'';
|
||||||
tetrioPlus = pkgs.tetrio.overrideAttrs (old: {
|
|
||||||
withTetrioPlus = true;
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
|
||||||
@@ -51,7 +46,7 @@ in
|
|||||||
rofi
|
rofi
|
||||||
localsend
|
localsend
|
||||||
element-desktop
|
element-desktop
|
||||||
tetrioPlus
|
tetrio
|
||||||
krita
|
krita
|
||||||
unstable.libreoffice-fresh
|
unstable.libreoffice-fresh
|
||||||
mangohud
|
mangohud
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, systemd
|
, systemd
|
||||||
, callPackage
|
, callPackage
|
||||||
|
, withTetrioPlus ? true
|
||||||
, tetrio-plus ? callPackage ./tetrio-plus.nix { }
|
, tetrio-plus ? callPackage ./tetrio-plus.nix { }
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
@@ -70,7 +71,9 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
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/TETR.IO \
|
wrapProgram $out/opt/TETR.IO/TETR.IO \
|
||||||
|
|||||||
Reference in New Issue
Block a user