diff --git a/pkgs/by-name/pl/plasticity/package.nix b/pkgs/by-name/pl/plasticity/package.nix index 7318880e6849..b089c211b751 100644 --- a/pkgs/by-name/pl/plasticity/package.nix +++ b/pkgs/by-name/pl/plasticity/package.nix @@ -117,9 +117,8 @@ stdenv.mkDerivation rec { ''; #--use-gl=egl for it to use hardware rendering it seems. Otherwise there are terrible framerates - postInstall = '' - substituteInPlace share/applications/Plasticity.desktop \ - --replace-fail 'Exec=Plasticity %U' "Exec=Plasticity --use-gl=egl %U" + preFixup = '' + gappsWrapperArgs+=(--add-flags "--use-gl=egl") ''; meta = with lib; {