diff options
author | Muhammad Kaisar Arkhan (Yuki) <hi@yukiisbo.red> | 2021-07-16 21:07:41 +0200 |
---|---|---|
committer | Muhammad Kaisar Arkhan (Yuki) <hi@yukiisbo.red> | 2021-07-16 22:28:36 +0200 |
commit | 9e0b91df971ee35c38382d16dc06e7fdcc378daa (patch) | |
tree | 01f39bc606605860d2e87193703746c9a9fd1e65 /pkgs/applications/misc/lutris | |
parent | 143a07745ead38068e24943967adef4c81d11971 (diff) |
lutris: add extraLibraries/extraPkgs args
steam has extraLibraries and extraPkgs arguments which allow the user to define additional libraries and software which may be required to run their Steam software. This commit simply add the same mechanic to lutris.
Diffstat (limited to 'pkgs/applications/misc/lutris')
-rw-r--r-- | pkgs/applications/misc/lutris/fhsenv.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/misc/lutris/fhsenv.nix b/pkgs/applications/misc/lutris/fhsenv.nix index 19cb7f6c5526b..38513937d01f8 100644 --- a/pkgs/applications/misc/lutris/fhsenv.nix +++ b/pkgs/applications/misc/lutris/fhsenv.nix @@ -1,4 +1,6 @@ { lib, buildFHSUserEnv, lutris-unwrapped +, extraPkgs ? pkgs: [ ] +, extraLibraries ? pkgs: [ ] , steamSupport ? true }: @@ -87,7 +89,8 @@ in buildFHSUserEnv { soundfont-fluid bzip2 game-music-emu ] ++ qt5Deps pkgs ++ gnomeDeps pkgs - ++ lib.optional steamSupport pkgs.steam; + ++ lib.optional steamSupport pkgs.steam + ++ extraPkgs pkgs; multiPkgs = pkgs: with pkgs; [ # Common @@ -110,7 +113,8 @@ in buildFHSUserEnv { # Winetricks fribidi - ] ++ xorgDeps pkgs; + ] ++ xorgDeps pkgs + ++ extraLibraries pkgs; extraInstallCommands = '' mkdir -p $out/share |