Merge pull request #54356 from etu/update-lsi

linux-steam-integration: 0.7.2 -> 0.7.3
This commit is contained in:
Silvan Mosberger 2019-01-24 00:54:14 +01:00 committed by GitHub
commit 2f925289ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,34 +1,32 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, git, gtk, pkgs, gettext, { stdenv, fetchFromGitHub, meson, ninja, pkgconfig, git, gtk, pkgs, gettext,
gcc_multi, libressl }: gcc_multi, libressl, gnome3, steam }:
let let
version = "0.7.2"; version = "0.7.3";
steamBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ steam ])}/steam";
zenityBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ gnome3.zenity ])}/zenity";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "linux-steam-integration-${version}"; name = "linux-steam-integration-${version}";
nativeBuildInputs = [ meson ninja pkgconfig git gettext gcc_multi ];
buildInputs = [ gtk libressl ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "solus-project"; owner = "clearlinux";
repo = "linux-steam-integration"; repo = "linux-steam-integration";
rev = "v${version}"; rev = "v${version}";
sha256 = "0yn71fvjqi63dxk04jsndb26pgipl0nla10sy94bi7q95pk3sdf6"; sha256 = "0brv3swx8h170ycxksb31sf5jvj85csfpx7gjlf6yrfz7jw2j6vp";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ meson ninja pkgconfig git gettext gcc_multi ];
buildInputs = [ gtk libressl ];
# Patch lib paths (AUDIT_PATH and REDIRECT_PATH) in shim.c # Patch lib paths (AUDIT_PATH and REDIRECT_PATH) in shim.c
# Patch path to lsi-steam in lsi-steam.desktop # Patch path to lsi-steam in lsi-steam.desktop
# Patch path to zenity in lsi.c # Patch path to zenity in lsi.c
postPatch = '' postPatch = ''
sed -i -e "s|/usr/|$out/|g" src/shim/shim.c substituteInPlace src/shim/shim.c --replace "/usr/" $out
sed -i -e "s|/usr/|$out/|g" data/lsi-steam.desktop substituteInPlace data/lsi-steam.desktop --replace "/usr/" $out
sed -i -e "s|zenity|${zenityBinPath}|g" src/lsi/lsi.c substituteInPlace src/lsi/lsi.c --replace zenity ${gnome3.zenity}/bin/zenity
sed -i -e "s|Name=Linux Steam Integration|Name=Linux Steam Integration Settings|" data/lsi-settings.desktop.in substituteInPlace data/lsi-settings.desktop.in \
--replace "Name=Linux Steam Integration" "Name=Linux Steam Integration Settings"
''; '';
configurePhase = '' configurePhase = ''
@ -36,7 +34,7 @@ in stdenv.mkDerivation rec {
meson build \ meson build \
-Dwith-shim=co-exist \ -Dwith-shim=co-exist \
-Dwith-frontend=true \ -Dwith-frontend=true \
-Dwith-steam-binary=${steamBinPath} \ -Dwith-steam-binary=${steam}/bin/steam \
-Dwith-new-libcxx-abi=true \ -Dwith-new-libcxx-abi=true \
-Dwith-libressl-mode=native \ -Dwith-libressl-mode=native \
--prefix / \ --prefix / \
@ -74,7 +72,7 @@ in stdenv.mkDerivation rec {
various workarounds to get games working, and fixes long standing bugs in various workarounds to get games working, and fixes long standing bugs in
both games and the client both games and the client
''; '';
homepage = https://github.com/solus-project/linux-steam-integration; homepage = https://github.com/clearlinux/linux-steam-integration;
license = licenses.lgpl21; license = licenses.lgpl21;
maintainers = [ maintainers.etu ]; maintainers = [ maintainers.etu ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];