Commit Graph

29 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
Vladimír Čunát
1bb8eb491c
sunshine: fix build, missing wayland-scanner 2024-08-31 11:37:13 +02:00
aleksana
592e3845c4 treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
Emily
2bf72c41df sunshine: add upstream patch for miniupnpc 2.2.8 2024-07-11 19:53:46 +01:00
Morgan Helton
acc1075316 sunshine: 0.23.0 -> 0.23.1 2024-04-24 19:18:07 -05:00
Sandro
5bfe2b6964
Merge pull request #294641 from devusb/sunshine-module
nixos/sunshine: init
2024-04-20 21:32:50 +02:00
André Silva
c230c3ecc2
sunshine: 0.22.2 -> 0.23.0 2024-04-15 13:12:04 +01:00
Jonathan Ringer
0df9f80d63
sunshine: Add comment about autoPatchelfHook's usage 2024-04-01 09:47:17 -07:00
Jonathan Ringer
b251520084
sunshine: use pkgs.autoAddDriverRunpath 2024-04-01 09:46:47 -07:00
Morgan Helton
c44ca35286 sunshine: add NixOS test 2024-03-30 20:07:48 -05:00
piotr152
100dee1ca2
sunshine: fix systemd user service (#295918) 2024-03-25 21:47:35 +01:00
Sandro
ee82708c94
Merge pull request #296747 from devusb/sunshine
sunshine: 0.22.0 -> 0.22.2
2024-03-23 18:20:47 +01:00
Someone
e7797267a2
Merge pull request #281576 from yannham/refactor/cuda-setup-hooks-refactor
cudaPackages: generalize and refactor setup hooks
2024-03-19 20:06:18 +00:00
Morgan Helton
a98d53c4cd sunshine: 0.22.0 -> 0.22.2 2024-03-17 15:19:52 -05:00
Yann Hamdaoui
63746cac08
cudaPackages: generalize and refactor setup hook
This PR refactor CUDA setup hooks, and in particular
autoAddOpenGLRunpath and autoAddCudaCompatRunpathHook, that were using a
lot of code in common (in fact, I introduced the latter by copy pasting
most of the bash script of the former). This is not satisfying for
maintenance, as a recent patch showed, because we need to duplicate
changes to both hooks.

This commit abstract the common part in a single shell script that
applies a generic patch action to every elf file in the output. For
autoAddOpenGLRunpath the action is just addOpenGLRunpath (now
addDriverRunpath), and is few line function for
autoAddCudaCompatRunpathHook.

Doing so, we also takes the occasion to use the newer addDriverRunpath
instead of the previous addOpenGLRunpath, and rename the CUDA hook to
reflect that as well.

Co-Authored-By: Connor Baker <connor.baker@tweag.io>
2024-03-15 15:54:21 +01:00
Morgan Helton
de74b3be3e sunshine: 0.21.0 -> 0.22.0 2024-03-11 18:27:31 -05:00
Morgan Helton
56aeedf456 sunshine: use cuda compatible libstdc++ when building with cuda support 2024-03-06 19:35:45 -06:00
lucasew
51f6fbefdc sunshine: add meta.mainProgram
Signed-off-by: lucasew <lucas59356@gmail.com>
2023-12-25 10:10:24 -03:00
Morgan Helton
9ef9ee8857 sunshine: add libglvnd to runtimeDependencies 2023-11-30 21:14:01 -06:00
Morgan Helton
df1b52eda2 sunshine: 0.20.0 -> 0.21.0 2023-10-24 05:38:39 -05:00
Someone Serge
471dbe9bcf
treewide: consume config.cudaSupport as required
Eliminate uses of `config.cudaSupport or false` and alike, since the
option is now declared in config.nix with a default value

fd .nix -t f -x sed 's/config\.cudaSupport or false, cudaPackages [?] [{][}]/config.cudaSupport, cudaPackages ? { }/' '{}' -i
fd .nix -t f -x sed 's/config\.cudaSupport or false/config.cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = pkgs.config.cudaSupport/inherit (pkgs.config) cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = config.cudaSupport/inherit (config) cudaSupport/' '{}' -i
2023-07-20 18:08:19 +03:00
Someone Serge
bf9e6fe9b8
tree-wide: rm cudaSupport ? false formal parameters
'cudaSupport ? false' -> 'cudaSupport ? config.cudaSupport or false' to respect global defaults

Packages expressions that take `cudaSupport ? false` are likely to
ignore `config.cudaSupport`. Instead, we want them to make `cudaSupport`
a required argument, or to explicitly refer to `config`
2023-07-20 17:27:07 +03:00
Morgan Helton
67c8ff30d3 sunshine: 0.19.1 -> 0.20.0 2023-06-17 09:20:17 -05:00
Morgan Helton
50424d0bd0 sunshine: 0.18.4 -> 0.19.1 2023-04-10 12:11:30 -05:00
Morgan Helton
42ca62eb01 sunshine: add updater script 2023-04-02 19:01:56 -05:00
Morgan Helton
34b27d45c1 sunshine: 0.16.0 -> 0.18.4 2023-03-12 20:55:24 -05:00
Morgan Helton
ece23c36df sunshine: 0.15.0 -> 0.16.0 2022-12-22 16:04:44 -06:00
R. Ryantm
2cd9eb8daf sunshine: 0.14.1 -> 0.15.0 2022-11-01 07:19:49 +00:00
Morgan Helton
53f5456f3b sunshine: init at 0.14.1 2022-10-23 14:03:32 -05:00