Switch to bundled packages to fix build.

This commit is contained in:
Tom Alexander
2025-09-13 12:00:09 -04:00
parent d0f23c0cb1
commit 74ee87a111
11 changed files with 729 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ in
(
final: prev:
let
modified_package = (pkgs.callPackage ./package/package.nix { });
optimizeWithFlags =
pkg: flags:
pkg.overrideAttrs (old: {
@@ -56,12 +57,12 @@ in
});
original_package =
if config.me.optimizations.enable then
(optimizeWithFlags prev.spaghettikart [
(optimizeWithFlags modified_package [
"-march=znver2"
"-mtune=znver2"
])
else
prev.spaghettikart;
modified_package;
in
{
spaghettikart = pkgs.buildEnv {
@@ -76,7 +77,7 @@ in
];
# 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/SpaghettiKart.desktop
chmod 0555 $out/share/applications/spaghettikart.desktop
'';
};
}