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,
|
{ 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.2";
|
||||||
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 = "solus-project";
|
||||||
repo = "linux-steam-integration";
|
repo = "linux-steam-integration";
|
||||||
|
@ -20,15 +15,18 @@ in stdenv.mkDerivation rec {
|
||||||
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 / \
|
||||||
|
|
Loading…
Reference in New Issue