iXit / wine-nine-standalone

Build Gallium Nine support on top of an existing WINE installation
GNU Lesser General Public License v2.1
272 stars 23 forks source link

bootstrap: add nixos support #153

Closed 9ary closed 1 year ago

9ary commented 1 year ago

I'm packaging this project for NixOS.

https://github.com/NixOS/nixpkgs/pull/220853

dhewg commented 1 year ago

There really is no /etc/os-release? That sounds... fishy?

9ary commented 1 year ago

It exists at runtime, but isn't present in the build environment. This is probably related to purity.

dhewg commented 1 year ago

Okay, I don't know nixos, but np, we can merge this. But the next question is: there really is no arch specific pkg-config?

9ary commented 1 year ago

Indeed, the way multilib works on nixos is different from most other distros. Each package is installed to a dedicated prefix in the nix store, with a hash in the path. This allows multiple versions and builds of the same package to coexist, so the 32 bit packages are just those from the 32 bit distribution. The 32 and 64 bit variants of nine are built as separate packages. At build time, packages for only one architecture will be available so there is no need to discriminate between the 32 bit and 64 bit pkg-config.

dhewg commented 1 year ago

Alright, thanks for the patches!