Commit Graph

11 Commits

Author SHA1 Message Date
Reno Dakota
52bf1163fa
treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
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
Sefa Eyeoglu
697d24d5de
prismlauncher: use top level X11 packages
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-09-01 15:13:32 +02:00
Sefa Eyeoglu
2a5017a555
prismlauncher: deprecate withWaylandGLFW option
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-09-01 15:12:49 +02:00
Sandro Jäckel
d50e23f0a4
glxinfo: replace with mesa-demos 2024-08-28 14:38:12 +02:00
seth
ae25abbadf
prismlauncher: support all openal binary backends
Previously we only included `libpulseaudio` in the wrapper, which
limited the binary version of OpenAL provided by the launcher from using
it's other backends. This also better documents what dependencies are
for what part of lwjgl

Fixes https://github.com/NixOS/nixpkgs/issues/330154
2024-08-09 21:04:30 -04:00
Sefa Eyeoglu
416ba8804b
treewide: use addDriverRunpath
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-06-30 15:01:01 -04:00
seth
3b2969b1a5
prismlauncher: improve assertions
controllerSupport and textToSpeechSupport have no effect outside of
linux and have no reason to be set; both of these work out of the box on
darwin without any intervention from us
2024-06-23 14:43:38 -04:00
seth
40581e9eed
prismlauncher: refactor
this primarily reorders arguments and items in lists, fixes the
meta-attributes of the wrapped version of the package, tidies up some
comments, and adds new ones to better explain why we do certain things
2024-06-22 22:43:22 -04:00
seth
b40318aaf7
prismlauncher: format with nixfmt 2024-06-22 22:40:13 -04:00
seth
dce34fd38b
prismlauncher: migrate to by-name 2024-06-22 22:37:19 -04:00