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

Wine/Proton with ntsync/fastsync? #176

Open
gallexme opened this issue Apr 16, 2024 · 1 comment
Open

Wine/Proton with ntsync/fastsync? #176

gallexme opened this issue Apr 16, 2024 · 1 comment

Comments

@gallexme
Copy link

Hey There,
do u know if theres a way to enable either ntsync/fastsync in the tkg/other nix wine/proton builds?
the cachyos kernel we use does support ntsync already, but havent found a program to use it with yet

@gallexme
Copy link
Author

gallexme commented Apr 17, 2024

if anyone wants to go on that adventure

  wine-tkg =
    (callPackage "${nixpkgs-wine}/pkgs/applications/emulators/wine/base.nix" (lib.recursiveUpdate defaults
      rec {
        pname = pnameGen "wine-tkg";
        version = lib.removeSuffix "\n" (lib.removePrefix "Wine version " (builtins.readFile "${src}/VERSION"));
        src = pins.wine-tkg;
      }))
    .overrideDerivation (old: {
      NIX_CFLAGS_COMPILE = let
        inherit
          (pkgs.linuxPackages_xanmod_latest)
          kernel
          ;
        headers = pkgs.makeLinuxHeaders {
          inherit (kernel) src;
          inherit (kernel) version;
          inherit (kernel) patches;
        };
      in [
        "-I${headers}/include"
      ];
    });

and the npins sources(built a custom tkg src tree with ntsync enabled)

   "type": "Git",
      "repository": {
        "type": "GitHub",
        "owner": "h0st-space",
        "repo": "wine-tkg-git"
      },
      "branch": "main",
      "revision": "8b36d4a240e6940484fae5d6f65ad7abe3f757d1",
      "url": "https://github.com/h0st-space/wine-tkg-git/archive/8b36d4a240e6940484fae5d6f65ad7abe3f757d1.zip",
      "hash": "sha256:02chyskn1xvra759ms3fw87gpdlp95959ihg3f68jpl0sy4anqk5"
    }

also make sure to run a ntsync kernel+have the module loaded, and properly set permissions on /dev/ntsync (i guess proper way would be a udev rule?)
i used
sudo chmod 0644 /dev/ntsync
for now

the wine-tkg source preparation tool is really impure...
i used a fhsuserenv shell to make it and pushed it to git ...

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

1 participant