linux-steam-integration: Clean up the derivation a bit
This commit is contained in:
parent
555e7eb375
commit
72d6aaede6
@ -1,17 +1,12 @@
|
||||
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, git, gtk, pkgs, gettext,
|
||||
gcc_multi, libressl }:
|
||||
gcc_multi, libressl, gnome3, steam }:
|
||||
|
||||
let
|
||||
version = "0.7.2";
|
||||
steamBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ steam ])}/steam";
|
||||
zenityBinPath = "${stdenv.lib.makeBinPath (with pkgs; [ gnome3.zenity ])}/zenity";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "linux-steam-integration-${version}";
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkgconfig git gettext gcc_multi ];
|
||||
buildInputs = [ gtk libressl ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "solus-project";
|
||||
repo = "linux-steam-integration";
|
||||
@ -20,15 +15,18 @@ in stdenv.mkDerivation rec {
|
||||
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 path to lsi-steam in lsi-steam.desktop
|
||||
# Patch path to zenity in lsi.c
|
||||
postPatch = ''
|
||||
sed -i -e "s|/usr/|$out/|g" src/shim/shim.c
|
||||
sed -i -e "s|/usr/|$out/|g" data/lsi-steam.desktop
|
||||
sed -i -e "s|zenity|${zenityBinPath}|g" src/lsi/lsi.c
|
||||
sed -i -e "s|Name=Linux Steam Integration|Name=Linux Steam Integration Settings|" data/lsi-settings.desktop.in
|
||||
|
||||
substituteInPlace src/shim/shim.c --replace "/usr/" $out
|
||||
substituteInPlace data/lsi-steam.desktop --replace "/usr/" $out
|
||||
substituteInPlace src/lsi/lsi.c --replace zenity ${gnome3.zenity}/bin/zenity
|
||||
substituteInPlace data/lsi-settings.desktop.in \
|
||||
--replace "Name=Linux Steam Integration" "Name=Linux Steam Integration Settings"
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
@ -36,7 +34,7 @@ in stdenv.mkDerivation rec {
|
||||
meson build \
|
||||
-Dwith-shim=co-exist \
|
||||
-Dwith-frontend=true \
|
||||
-Dwith-steam-binary=${steamBinPath} \
|
||||
-Dwith-steam-binary=${steam}/bin/steam \
|
||||
-Dwith-new-libcxx-abi=true \
|
||||
-Dwith-libressl-mode=native \
|
||||
--prefix / \
|
||||
|
Loading…
Reference in New Issue
Block a user