@@ -1,34 +1,32 @@
11{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, git, gtk, pkgs, gettext,
2− gcc_multi, libressl }:
2+ gcc_multi, libressl, gnome3, steam }:
33
44let
5− version = "0.7.2";
6− steamBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ steam ])}/steam";
7− zenityBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ gnome3.zenity ])}/zenity";
5+ version = "0.7.3";
86
97in stdenv.mkDerivation rec {
108 name = "linux-steam-integration-${version}";
119
12− nativeBuildInputs = [ meson ninja pkgconfig git gettext gcc_multi ];
13− buildInputs = [ gtk libressl ];
14−
1510 src = fetchFromGitHub {
16− owner = "solus-project";
11+ owner = "clearlinux";
1712 repo = "linux-steam-integration";
1813 rev = "v${version}";
19− sha256 = "0yn71fvjqi63dxk04jsndb26pgipl0nla10sy94bi7q95pk3sdf6";
14+ sha256 = "0brv3swx8h170ycxksb31sf5jvj85csfpx7gjlf6yrfz7jw2j6vp";
2015 fetchSubmodules = true;
2116 };
2217
18+ nativeBuildInputs = [ meson ninja pkgconfig git gettext gcc_multi ];
19+ buildInputs = [ gtk libressl ];
20+
2321 # Patch lib paths (AUDIT_PATH and REDIRECT_PATH) in shim.c
2422 # Patch path to lsi-steam in lsi-steam.desktop
2523 # Patch path to zenity in lsi.c
2624 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− sed -i -e "s|Name=Linux Steam Integration|Name=Linux Steam Integration Settings|" data/lsi-settings.desktop.in
31−
25+ substituteInPlace src/shim/shim.c --replace "/usr/" $out
26+ substituteInPlace data/lsi-steam.desktop --replace "/usr/" $out
27+ substituteInPlace src/lsi/lsi.c --replace zenity ${gnome3.zenity}/bin/zenity
28+ substituteInPlace data/lsi-settings.desktop.in \
29+ --replace "Name=Linux Steam Integration" "Name=Linux Steam Integration Settings"
3230 '';
3331
3432 configurePhase = ''
@@ -36,7 +34,7 @@ in stdenv.mkDerivation rec {
3634 meson build \
3735 -Dwith-shim=co-exist \
3836 -Dwith-frontend=true \
39− -Dwith-steam-binary=${steamBinPath} \
37+ -Dwith-steam-binary=${steam}/bin/steam \
4038 -Dwith-new-libcxx-abi=true \
4139 -Dwith-libressl-mode=native \
4240 --prefix / \
@@ -74,7 +72,7 @@ in stdenv.mkDerivation rec {
7472 various workarounds to get games working, and fixes long standing bugs in
7573 both games and the client
7674 '';
77− homepage = https://github.com/solus-project/linux-steam-integration;
75+ homepage = https://github.com/clearlinux/linux-steam-integration;
7876 license = licenses.lgpl21;
7977 maintainers = [ maintainers.etu ];
8078 platforms = [ "x86_64-linux" ];