wpsoffice: 11.1.0.8865 -> 11.1.0.9080
This commit is contained in:
parent
2e2cb2890c
commit
37771e47eb
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec{
|
||||||
pname = "wpsoffice";
|
pname = "wpsoffice";
|
||||||
version = "11.1.0.8865";
|
version = "11.1.0.9080";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/8865/wps-office_11.1.0.8865_amd64.deb";
|
url = "http://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/9080/wps-office_11.1.0.9080.XA_amd64.deb";
|
||||||
sha256 = "1hfpj1ayhzlrnnp72yjzrpd60xsbj9y46m345lqysiaj1hnwdbd8";
|
sha256 = "1731e9aea22ef4e558ad66b1373d863452b4f570aecf09d448ae28a821333454";
|
||||||
};
|
};
|
||||||
unpackCmd = "dpkg -x $src .";
|
unpackCmd = "dpkg -x $src .";
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
@ -75,24 +75,20 @@ stdenv.mkDerivation rec{
|
|||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r opt $out
|
cp -r opt $out
|
||||||
cp -r usr/* $out
|
cp -r usr/* $out
|
||||||
|
|
||||||
# Avoid forbidden reference error due use of patchelf
|
# Avoid forbidden reference error due use of patchelf
|
||||||
rm -r *
|
rm -r *
|
||||||
|
|
||||||
for i in wps wpp et wpspdf; do
|
for i in wps wpp et wpspdf; do
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--force-rpath --set-rpath "$(patchelf --print-rpath $prefix/office6/$i):${stdenv.cc.cc.lib}/lib64:${libPath}" \
|
--force-rpath --set-rpath "$(patchelf --print-rpath $prefix/office6/$i):${stdenv.cc.cc.lib}/lib64:${libPath}" \
|
||||||
$prefix/office6/$i
|
$prefix/office6/$i
|
||||||
|
|
||||||
substituteInPlace $out/bin/$i \
|
substituteInPlace $out/bin/$i \
|
||||||
--replace /opt/kingsoft/wps-office $prefix
|
--replace /opt/kingsoft/wps-office $prefix
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in $out/share/applications/*;do
|
for i in $out/share/applications/*;do
|
||||||
substituteInPlace $i \
|
substituteInPlace $i \
|
||||||
--replace /usr/bin $out/bin \
|
--replace /usr/bin $out/bin \
|
||||||
--replace /opt/kingsoft/wps-office $prefix
|
--replace /opt/kingsoft/wps-office $prefix
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user