-
Hi, This is probably a pretty stupid question (new to Nix/NixOS here) - and I apologise for that (so I'll make this brief) - but I couldn't find a solution to this: I'm running NixOS with Nixpkgs unstable here and osu!stable won't run with it's built-in wine version - after a little bit of testing, I've found that the wine-staging version 8.5 works. What I want to ask, however, is how to override the osu!stable package to change the wine package used? {
environment.systemPackages = let
gamePkgs = inputs.nix-gaming.packages.${pkgs.hostPlatform.system};
in [ # or home.packages
gamePkgs.osu-stable.override rec {
wine = <your-wine>;
wine-discord-ipc-bridge = gamePkgs.wine-discord-ipc-bridge.override {inherit wine;}; # or override this one as well
};
];
} And changed Help would truly be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That's the correct way to override. Can you post the error? |
Beta Was this translation helpful? Give feedback.
-
you probably need to write the override in parenthesizes like so: {
environment.systemPackages = let
gamePkgs = inputs.nix-gaming.packages.${pkgs.hostPlatform.system};
in [ # or home.packages
(gamePkgs.osu-stable.override rec {
wine = <your-wine>;
wine-discord-ipc-bridge = gamePkgs.wine-discord-ipc-bridge.override {inherit wine;}; # or override this one as well
});
];
} |
Beta Was this translation helpful? Give feedback.
you probably need to write the override in parenthesizes
like so: