Commit Graph

21 Commits

Author SHA1 Message Date
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
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