Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atlauncher: add missing libraries #325878

Merged
merged 2 commits into from
Jul 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 34 additions & 27 deletions pkgs/by-name/at/atlauncher/package.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{ copyDesktopItems
, fetchurl
, jre
, lib
, makeDesktopItem
, makeWrapper
, stdenvNoCC
{
copyDesktopItems,
fetchurl,
jre,
lib,
makeDesktopItem,
makeWrapper,
stdenvNoCC,

, gamemodeSupport ? stdenvNoCC.isLinux
, textToSpeechSupport ? stdenvNoCC.isLinux
, additionalLibs ? [ ]
gamemodeSupport ? stdenvNoCC.isLinux,
textToSpeechSupport ? stdenvNoCC.isLinux,
additionalLibs ? [ ],

, # dependencies
flite
, gamemode
, libglvnd
, libpulseaudio
, udev
, xorg
# dependencies
flite,
gamemode,
libglvnd,
libpulseaudio,
udev,
xorg,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
Expand All @@ -35,19 +36,25 @@ stdenvNoCC.mkDerivation (finalAttrs: {

dontUnpack = true;

nativeBuildInputs = [ copyDesktopItems makeWrapper ];
nativeBuildInputs = [
copyDesktopItems
makeWrapper
];

installPhase =
let
runtimeLibraries = [
libglvnd
libpulseaudio
udev
xorg.libXxf86vm
]
++ lib.optional gamemodeSupport gamemode.lib
++ lib.optional textToSpeechSupport flite
++ additionalLibs;
runtimeLibraries =
[
libglvnd
libpulseaudio
udev
xorg.libX11
xorg.libXcursor
xorg.libXxf86vm
]
++ lib.optional gamemodeSupport gamemode.lib
++ lib.optional textToSpeechSupport flite
++ additionalLibs;
in
''
runHook preInstall
Expand Down