diff --git a/nix/steam_deck/configuration/roles/shipwright/default.nix b/nix/steam_deck/configuration/roles/shipwright/default.nix index ce1af5d..3557290 100644 --- a/nix/steam_deck/configuration/roles/shipwright/default.nix +++ b/nix/steam_deck/configuration/roles/shipwright/default.nix @@ -25,7 +25,7 @@ } (lib.mkIf config.me.graphical { home.packages = with pkgs; [ - (config.lib.nixGL.wrap shipwright) + shipwright ]; home.file.".local/share/soh/shipofharkinian.json" = { @@ -45,6 +45,26 @@ ".local/share/soh/oot.otr" ]; }; + + nixpkgs.overlays = [ + (final: prev: { + shipwright = pkgs.buildEnv { + name = prev.shipwright.name; + paths = [ + (config.lib.nixGL.wrap prev.shipwright) + ]; + extraOutputsToInstall = [ + "man" + "doc" + "info" + ]; + # We have to use 555 instead of the normal 444 here because the .desktop file ends up inside $HOME on steam deck and desktop files must be either not in $HOME or must be executable, otherwise KDE Plasma refuses to execute them. + postBuild = '' + chmod 0555 $out/share/applications/soh.desktop + ''; + }; + }) + ]; }) ] );