fix tetrio

This commit is contained in:
Kopatz
2023-12-21 22:00:48 +01:00
parent c436386945
commit 8aa53df5b2

View File

@@ -1,9 +1,22 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, lib, ... }:
let 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
''; '';
fixedTetrio = pkgs.tetrio-desktop.overrideAttrs (old: rec {
withTetrioPlus = true;
libPath = lib.makeLibraryPath [
pkgs.libGL
pkgs.libpulseaudio
pkgs.systemd
];
postFixup = ''
wrapProgram $out/opt/TETR.IO/tetrio-desktop \
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/TETR.IO \
''${gappsWrapperArgs[@]}
'';
});
in in
{ {
programs.steam = { programs.steam = {
@@ -56,7 +69,7 @@ in
taisei taisei
localsend localsend
element-desktop element-desktop
tetrio-desktop fixedTetrio
krita krita
unstable.libreoffice-fresh unstable.libreoffice-fresh
mangohud mangohud