diff options
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/airshipper/default.nix | 12 | ||||
-rw-r--r-- | pkgs/games/rare/default.nix | 64 | ||||
-rw-r--r-- | pkgs/games/steam/fhsenv.nix | 1 |
3 files changed, 75 insertions, 2 deletions
diff --git a/pkgs/games/airshipper/default.nix b/pkgs/games/airshipper/default.nix index bc6f2a8dc71e..4474d09659e5 100644 --- a/pkgs/games/airshipper/default.nix +++ b/pkgs/games/airshipper/default.nix @@ -1,6 +1,7 @@ { lib , rustPlatform , fetchFromGitLab +, fetchpatch , openssl , vulkan-loader , wayland @@ -25,6 +26,14 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-nOE9ZNHxLEAnMkuBSpxmeq3DxkRIlcoase6AxU+eFug="; }; + patches = [ + # this *should* be merged in time for the release following 0.7.0 + (fetchpatch { + url = "https://github.com/veloren/Airshipper/commit/97fc986ab4cbf59f2c764f647710f19db86031b4.patch"; + hash = "sha256-Sg5et+yP6Z44wV/t9zqKLpg1C0cq6rV+3WrzAH4Za3U="; + }) + ]; + cargoSha256 = "sha256-s3seKVEhXyOVlt3a8cubzRWoB4SVQpdCmq12y0FpDUw="; buildInputs = [ @@ -57,7 +66,8 @@ rustPlatform.buildRustPackage rec { libXi libXcursor ]; - in '' + in + '' patchelf --set-rpath "${libPath}" "$out/bin/airshipper" ''; diff --git a/pkgs/games/rare/default.nix b/pkgs/games/rare/default.nix new file mode 100644 index 000000000000..9bf3aca75422 --- /dev/null +++ b/pkgs/games/rare/default.nix @@ -0,0 +1,64 @@ +{ lib, fetchPypi, buildPythonApplication, makeDesktopItem, copyDesktopItems, qt5 +, pillow, psutil, pypresence, pyqt5, python, qtawesome, requests }: + +buildPythonApplication rec { + pname = "rare"; + version = "1.8.8"; + + src = fetchPypi { + inherit version; + pname = "Rare"; + sha256 = "sha256-00CtvBqSrT9yJUHZ5529VrIQtCOYkHRc8+rJHmrTSpg="; + }; + + nativeBuildInputs = [ + copyDesktopItems + qt5.wrapQtAppsHook + ]; + + propagatedBuildInputs = [ + pillow + psutil + pypresence + pyqt5 + qtawesome + requests + ]; + + desktopItems = [ + (makeDesktopItem { + name = pname; + exec = "rare"; + icon = "Rare"; + comment = meta.description; + desktopName = "Rare"; + genericName = "Rare (Epic Games Launcher Open Source Alternative)"; + }) + ]; + + dontWrapQtApps = true; + + preBuild = '' + # Solves "PermissionError: [Errno 13] Permission denied: '/homeless-shelter'" + export HOME=$(mktemp -d) + ''; + + postInstall = '' + install -Dm644 $out/${python.sitePackages}/rare/resources/images/Rare.png -t $out/share/pixmaps/ + ''; + + preFixup = '' + makeWrapperArgs+=("''${qtWrapperArgs[@]}") + ''; + + # Project has no tests + doCheck = false; + + meta = with lib; { + description = "GUI for Legendary, an Epic Games Launcher open source alternative"; + homepage = "https://github.com/Dummerle/Rare"; + maintainers = with maintainers; [ wolfangaukang ]; + license = licenses.gpl3Only; + platforms = platforms.linux; + }; +} diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 37ec8ef8c7e2..10709102ecf2 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -131,7 +131,6 @@ in buildFHSUserEnv rec { rtmpdump # dependencies for mesa drivers, needed inside pressure-vessel - mesa.drivers mesa.llvmPackages.llvm.lib vulkan-loader expat |