Commit Graph

21 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Martino Fontana
b2182b9130 wine: cleanup Wayland
Makes base.nix less Wayland-centric. This means:
- Don't specify support in the meta.description (since even regular Wine supports it, it's specified everywhere)
- `x11Support` and `waylandSupport` are now set in `wine-packages.nix`, like every other flag (they are also now disabled on minimal)
- Disable Darwin in supported platforms if an incompatible supportFlag is true (not just `waylandSupport`)
- Add wineRelease name for every release other than "stable" or "unstable", instead of just "wayland"
  - This also fixes an inconsistency on wine-staging, where "-staging" was written after the version
2024-02-11 14:39:31 +01:00
Stefan Frijters
1e14a900a5
wine: remove vkd3dSupport
From https://www.winehq.org/announce/8.0:

"The vkd3d and LDAP libraries are bundled in the source tree and built as
  PE. The corresponding Unix libraries are no longer needed."
2023-02-03 23:06:35 +01:00
Stefan Frijters
3dbfc39ac5
wine: remove ldapSupport
From https://www.winehq.org/announce/8.0:

"The vkd3d and LDAP libraries are bundled in the source tree and built as
  PE. The corresponding Unix libraries are no longer needed."
2023-02-03 23:06:35 +01:00
Stefan Frijters
55b08c0d56
wine: remove openalSupport
From https://www.winehq.org/announce/8.0:

"The OpenAL library is no longer used."
2023-02-03 23:06:35 +01:00
Randy Eckenrode
913c322cc9
wine: enable Vulkan on Darwin 2022-09-14 21:10:20 -04:00
Randy Eckenrode
55d279809c
wine-packages: fix Hydra build failures on Darwin
Disable Vulkan and VKD3D by default on Darwin while MoltenVK is forced
to build using Xcode instead of the SDK in nixpkgs. They can be
overriden if the user needs either of those.
2022-04-22 09:38:47 -04:00
Randy Eckenrode
ff2aca9f4a
wine: enable Vulkan on Darwin 2022-02-18 15:20:34 -05:00
Randy Eckenrode
855311e176
wine-packages: support libusb and libkrb5 2022-02-17 08:30:42 -05:00
Randy Eckenrode
f726c9e0e9
wine-packages: fix defaults for Darwin 2022-02-17 08:30:41 -05:00
AndersonTorres
36928989d7 Move misc/emulators to applications/emulators - part 2
Three small leftovers found via ripgrep.
2022-02-16 01:38:51 -03:00
Stefan Frijters
e0c745920b
wine: Remove bundled libraries
From the wine 7.0 release notes:

- The following libraries are bundled in the source tree and built as PE
  libraries, so they are no longer required at the Unix level:
2022-01-29 21:46:38 +01:00
jmc-figueira
abdbf22a30
wine-wayland: added derivation for building the experimental Wayland driver for Wine 2022-01-07 21:33:45 +00:00
Zane van Iperen
9672ef7e0a
wine{,64,Wow}Packages: add {stable,unstable,staging}Full 2021-11-06 17:03:57 +10:00
Atemu
ba6a2ecc64 wine: only embed mono & gecko installers in winePackages.full 2021-09-27 22:29:56 +02:00
Kira Bruneau
9b7c32a9c1 winePackages: enable mingwSupport in base build
With mingwSupport enabled, Wine uses MinGW builds of GCC (compiled for
the i686-w64-mingw32 & x86_64-w64-mingw32 targets) to cross compile
system DLLs as PE executables.

This is used to workaround some basic anticheat software. (See #103102)

Fedora & Arch Linux also have this enabled by default in their Wine builds:
- Fedora: 8e216ca407/f/wine.spec (_116)
- Arch Linux: 2435e762ea/trunk/PKGBUILD (L44)
2021-02-15 10:35:45 -05:00
marius851000
2718c41712 faudio, wine, vkd3d: add faudio 19.10 and vkd3d 1.1 to wine
fixes https://github.com/NixOS/nixpkgs/pull/68952
2019-10-12 14:57:28 +02:00
Daniel Schaefer
66fffe99d8 winePackages.fonts: init at 4.0
"Wine's fonts should be a natural candidate for their own subpackage"
https://wiki.winehq.org/Packaging

They are a replacement for some Microsoft fonts not available in other
replacement packages.
2019-06-12 23:33:18 +02:00
rnhmjoj
ff74da41fd
winePackages.wine: add SDL support 2018-11-29 00:18:46 +01:00
gnidorah
301789b473 wine: build wineWow packages on hydra 2018-07-03 21:29:32 +03:00
Yegor Timoshenko
1b2b126f82 winePackages: move to pkgs/top-level/wine-packages.nix 2018-05-17 02:31:03 +03:00