summary refs log tree commit diff
path: root/pkgs/applications/networking/remote/citrix-workspace/generic.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-10-30 18:33:35 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2020-10-30 18:36:21 +0100
commit93a00bec3e51e9a484468e1d3c9a68886d5c6fc0 (patch)
tree0749655d9b4fba6e098fa205a96cf7602dce54c0 /pkgs/applications/networking/remote/citrix-workspace/generic.nix
parent2a9e33374b943089f4271fc274493ed0ecc0de54 (diff)
downloadnixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.tar
nixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.tar.gz
nixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.tar.bz2
nixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.tar.lz
nixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.tar.xz
nixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.tar.zst
nixpkgs-93a00bec3e51e9a484468e1d3c9a68886d5c6fc0.zip
citrix_workspace: remove attributes for old versions; fix i686 build
Diffstat (limited to 'pkgs/applications/networking/remote/citrix-workspace/generic.nix')
-rw-r--r--pkgs/applications/networking/remote/citrix-workspace/generic.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/networking/remote/citrix-workspace/generic.nix b/pkgs/applications/networking/remote/citrix-workspace/generic.nix
index a2ad8b8129a..19165184d25 100644
--- a/pkgs/applications/networking/remote/citrix-workspace/generic.nix
+++ b/pkgs/applications/networking/remote/citrix-workspace/generic.nix
@@ -146,8 +146,8 @@ stdenv.mkDerivation rec {
     export HOME=$(mktemp -d)
 
     # Run upstream installer in the store-path.
-    sed -i -e 's,^ANSWER="",ANSWER="$INSTALLER_YES",g' -e 's,/bin/true,true,g' ./linuxx64/hinst
-    ${stdenv.shell} linuxx64/hinst CDROM "$(pwd)"
+    sed -i -e 's,^ANSWER="",ANSWER="$INSTALLER_YES",g' -e 's,/bin/true,true,g' ./${prefix}/hinst
+    ${stdenv.shell} ${prefix}/hinst CDROM "$(pwd)"
 
     if [ -f "$ICAInstDir/util/setlog" ]; then
       chmod +x "$ICAInstDir/util/setlog"
@@ -169,8 +169,8 @@ stdenv.mkDerivation rec {
 
     # See https://developer-docs.citrix.com/projects/workspace-app-for-linux-oem-guide/en/latest/reference-information/#library-files
     # Those files are fallbacks to support older libwekit.so and libjpeg.so
-    rm $out/opt/citrix-icaclient/lib/ctxjpeg_fb_8.so
-    rm $out/opt/citrix-icaclient/lib/UIDialogLibWebKit.so
+    rm $out/opt/citrix-icaclient/lib/ctxjpeg_fb_8.so || true
+    rm $out/opt/citrix-icaclient/lib/UIDialogLibWebKit.so || true
 
     # We support only Gstreamer 1.0
     rm $ICAInstDir/util/{gst_aud_{play,read},gst_*0.10,libgstflatstm0.10.so}