diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-12-23 22:11:18 +0000 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-12-23 22:26:34 +0000 |
commit | 3b2ea169f1adc4a03ac93f9f917fc570bf167651 (patch) | |
tree | 220fd104b30d9c729322a348e3254e1c05e691f8 /pkgs/applications/emulators/retroarch | |
parent | 1aacb258cbd283356b3637bbf27deaab1596b978 (diff) |
retroarch: fix retroarch-cg2glsl script
Patch script so it loads `cgc` from the correct place when `enableNvidiaCgToolkit` is set to `true`. Also, in case `enableNvidiaCgToolkit` is set to `false`, also remove the manual for the script.
Diffstat (limited to 'pkgs/applications/emulators/retroarch')
-rw-r--r-- | pkgs/applications/emulators/retroarch/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/emulators/retroarch/default.nix b/pkgs/applications/emulators/retroarch/default.nix index 442d7caa2e1af..5c18d47daa8a5 100644 --- a/pkgs/applications/emulators/retroarch/default.nix +++ b/pkgs/applications/emulators/retroarch/default.nix @@ -131,9 +131,16 @@ stdenv.mkDerivation rec { postInstall = lib.optionalString (runtimeLibs != [ ]) '' wrapProgram $out/bin/retroarch \ --prefix LD_LIBRARY_PATH ':' ${lib.makeLibraryPath runtimeLibs} + '' + + lib.optionalString enableNvidiaCgToolkit '' + wrapProgram $out/bin/retroarch-cg2glsl \ + --prefix PATH ':' ${lib.makeBinPath [ nvidia_cg_toolkit ]} ''; - preFixup = "rm $out/bin/retroarch-cg2glsl"; + preFixup = lib.optionalString (!enableNvidiaCgToolkit) '' + rm $out/bin/retroarch-cg2glsl + rm $out/share/man/man6/retroarch-cg2glsl.6* + ''; passthru.tests = nixosTests.retroarch; |