Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collision between wine-tkg and wine-ge #230

Open
fxzzi opened this issue Jan 9, 2025 · 1 comment
Open

collision between wine-tkg and wine-ge #230

fxzzi opened this issue Jan 9, 2025 · 1 comment

Comments

@fxzzi
Copy link

fxzzi commented Jan 9, 2025

Hey fuf and other maintainers!

I'm using the flake and and I wanted to grab both wine-ge and wine-tkg. Reasonings of this is because ge is still on 8, but works better for me on one or two games, and tkg is fully updated to 10rc4.

However there's a collision reported by nixos-rebuild,: error: collision between /nix/store/zmvrv4j7i83jx3drv39m2lbxvd6mibm0-wine-tkg-full-10.0-rc4/bin/.wine' and /nix/store/d05yk20nll1i55vs4kdhih3533lx1824-wine-ge-full-Proton8-26/bin/.wine'

The full log with trace is available here: https://paste.rs/JkqKQ.txt

Is this expected for them to conflict? Is there a way I can have both of them simultaneously?

Thanks for this repo btw, super useful stuff here :)

@fufexan
Copy link
Owner

fufexan commented Jan 9, 2025

They conflict because you're probably trying to have them both in your path, and they both provide a binaries with the same name (wine). In order to fix this, you can either not install them globally (only in games you need), or if that's not possible, wrap one of them (or both) like this and install the wrappers instead, roughly like this (untested, can probably be done with pkgs.runCommand instead):

wine-tkg-wrapped = pkgs.stdenvNoCC.mkDerivation {
  pname = "wine-tkg-wrapped";
  version = "0-unstable";

  installPhase = ''
    mkdir -p $out/bin
    for f in ${wine-tkg}/bin/*; do
      ln -s "${wine-tkg}/bin/$f" "$out/bin/''${f}-tkg"
    done
  '';
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants