Fix launching ship of harkinian from KDE plasma's start menu.

This commit is contained in:
Tom Alexander 2025-02-15 11:51:50 -05:00
parent 7dcdcc906c
commit 5d4ebf90b3
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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
'';
};
})
];
})
]
);