Merge pull request #33051 from etu/linux-steam-integration

linux-steam-integration: init at 0.7.2

authored by adisbladis and committed by GitHub 09287355 75634afb

+84
+80
pkgs/games/linux-steam-integration/default.nix
··· 1 + { stdenv, fetchFromGitHub, meson, ninja, pkgconfig, git, gtk, pkgs, gettext, 2 + gcc_multi, libressl }: 3 + 4 + let 5 + version = "0.7.2"; 6 + steamBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ steam ])}/steam"; 7 + zenityBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ gnome3.zenity ])}/zenity"; 8 + 9 + in stdenv.mkDerivation rec { 10 + name = "linux-steam-integration-${version}"; 11 + 12 + nativeBuildInputs = [ meson ninja pkgconfig git gettext gcc_multi ]; 13 + buildInputs = [ gtk libressl ]; 14 + 15 + src = fetchFromGitHub { 16 + owner = "solus-project"; 17 + repo = "linux-steam-integration"; 18 + rev = "v${version}"; 19 + sha256 = "0yn71fvjqi63dxk04jsndb26pgipl0nla10sy94bi7q95pk3sdf6"; 20 + fetchSubmodules = true; 21 + }; 22 + 23 + # Patch lib paths (AUDIT_PATH and REDIRECT_PATH) in shim.c 24 + # Patch path to lsi-steam in lsi-steam.desktop 25 + # Patch path to zenity in lsi.c 26 + postPatch = '' 27 + sed -i -e "s|/usr/|$out/|g" src/shim/shim.c 28 + sed -i -e "s|/usr/|$out/|g" data/lsi-steam.desktop 29 + sed -i -e "s|zenity|${zenityBinPath}|g" src/lsi/lsi.c 30 + ''; 31 + 32 + configurePhase = '' 33 + # Configure 64bit things 34 + meson build \ 35 + -Dwith-shim=co-exist \ 36 + -Dwith-frontend=true \ 37 + -Dwith-steam-binary=${steamBinPath} \ 38 + -Dwith-new-libcxx-abi=true \ 39 + -Dwith-libressl-mode=native \ 40 + --prefix / \ 41 + --libexecdir lib \ 42 + --libdir lib \ 43 + --bindir bin 44 + 45 + # Configure 32bit things 46 + CC="gcc -m32" CXX="g++ -m32" meson build32 \ 47 + -Dwith-shim=none \ 48 + -Dwith-libressl-mode=native \ 49 + --prefix / \ 50 + --libexecdir lib32 \ 51 + --libdir lib32 52 + ''; 53 + 54 + buildPhase = '' 55 + # Build 64bit things 56 + ninja -C build 57 + 58 + # Build 32bit things 59 + ninja -C build32 60 + ''; 61 + 62 + installPhase = '' 63 + DESTDIR="$out" ninja -C build install 64 + DESTDIR="$out" ninja -C build32 install 65 + ''; 66 + 67 + meta = with stdenv.lib; { 68 + description = "Steam wrapper to improve compability and performance"; 69 + longDescription = '' 70 + Linux Steam Integration is a helper system to make the Steam Client and 71 + Steam games run better on Linux. In a nutshell, LSI automatically applies 72 + various workarounds to get games working, and fixes long standing bugs in 73 + both games and the client 74 + ''; 75 + homepage = https://github.com/solus-project/linux-steam-integration; 76 + license = licenses.lgpl21; 77 + maintainers = [ maintainers.etu ]; 78 + platforms = [ "x86_64-linux" ]; 79 + }; 80 + }
+4
pkgs/top-level/all-packages.nix
··· 18432 18432 nativeOnly = true; 18433 18433 }).run; 18434 18434 18435 + linux-steam-integration = callPackage ../games/linux-steam-integration { 18436 + gtk = pkgs.gtk3; 18437 + }; 18438 + 18435 18439 stepmania = callPackage ../games/stepmania { 18436 18440 ffmpeg = ffmpeg_2; 18437 18441 };