From f28f6ecbdf08fe3f1371a393e380c9b1683a7f88 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Thu, 9 Apr 2026 19:47:08 +0100 Subject: [PATCH] Fix GoofCord --class flag placement after electron binary Co-Authored-By: Claude Opus 4.6 --- hosts/FredOS-Gaming.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index f3191ce..a2dd898 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -10,16 +10,12 @@ # ]; #}) mangohud - (pkgs.symlinkJoin { - name = "goofcord-wrapped"; - paths = [ goofcord ]; - nativeBuildInputs = [ pkgs.makeWrapper ]; - postBuild = '' - rm $out/bin/goofcord - makeWrapper ${goofcord}/bin/goofcord $out/bin/goofcord \ - --add-flags "--class=GoofCord" + (goofcord.overrideAttrs (old: { + postFixup = (old.postFixup or "") + '' + substituteInPlace $out/bin/goofcord \ + --replace-fail '/bin/electron"' '/bin/electron" --class=GoofCord' ''; - }) + })) lsfg-vk lsfg-vk-ui faugus-launcher