wpsoffice: no steam-run
This commit is contained in:
parent
0d373d5af9
commit
c5b27785cb
@ -1,6 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, mkDerivation
|
||||
, fetchurl
|
||||
, dpkg
|
||||
, wrapGAppsHook
|
||||
@ -13,7 +12,6 @@
|
||||
, libtiff
|
||||
, cups
|
||||
, xorg
|
||||
, steam-run
|
||||
, makeWrapper
|
||||
, useChineseVersion ? false
|
||||
}:
|
||||
@ -54,9 +52,10 @@ stdenv.mkDerivation rec {
|
||||
nspr
|
||||
mesa
|
||||
libtiff
|
||||
cups.lib
|
||||
];
|
||||
|
||||
runtimeDependencies = [ cups.lib ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
prefix=$out/opt/kingsoft/wps-office
|
||||
@ -71,12 +70,6 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace $i \
|
||||
--replace /usr/bin $out/bin
|
||||
done
|
||||
for i in wps wpp et wpspdf; do
|
||||
mv $out/bin/$i $out/bin/.$i-orig
|
||||
makeWrapper ${steam-run}/bin/steam-run $out/bin/$i \
|
||||
--add-flags $out/bin/.$i-orig \
|
||||
--argv0 $i
|
||||
done
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user