# Can't install citrix workspace

**URL:** https://discourse.nixos.org/t/cant-install-citrix-workspace/32806
**Category:** Help
**Created:** [September 8, 2023, 4:30pm UTC](https://discourse.nixos.org/t/cant-install-citrix-workspace/32806 "2023-09-08T16:30:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tim1980](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/t/e79b87/32.png) [@tim1980](https://discourse.nixos.org/u/tim1980)
#### Post date: [September 8, 2023, 4:30pm UTC](https://discourse.nixos.org/t/cant-install-citrix-workspace/32806/1 "2023-09-08T16:30:39Z")

</div>

Good evening,

I’m new to the forum and Nixos in general. So far very impressed with the possibilities. I can figure out many things by reading documentation/googling but one thing I can’t seem to get working is my citrix workspace app that I need to login to my work.

So far I’ve followed this thread:

> [@How to get the Citrix Workspace package to accept the EULA?](https://discourse.nixos.org/t/how-to-get-the-citrix-workspace-package-to-accept-the-eula/20187):
>
> Name: citrix-workspace Version: 21.12.0.18 Source License: Unfree Platform:x86\_64-linux I asked my question to the dev Philipp Menke, but he is not responding, but maybe one of you is using Citrix Workspace or is willing to try it out and help me. I am trying to get the package to work, but it keeps erroring out on the eula acceptance. How can I accept the eula and install the package properly in my configuration.nix ? I added the package to my configuration.nix and the allowUnfree below.…

and this one

> [@How to add tarball to nix store (Citrix Workspace)](https://discourse.nixos.org/t/how-to-add-tarball-to-nix-store-citrix-workspace/28415):
>
> The citrix\_workspace package requires the tarball to be part of the /nix/store before the package can be installed. The package suggests to manually download the tarball and then run nix-prefetch-url file://[path/to/tarball] but how can I do this declaratively in a flake configuration? Without knowing exactly how to do this my guess is that I can either manually download the tarball and include it as part of my flake repo (and somehow add it to the nix store by evaluating its path?) or including…

It seems I have to manually add the downloaded file to the nixos store so I’ve tried that:  
nix-prefetch-url file://./linuxx64-23.8.0.39.tar.gz  
(I’m in the Downloads directory already but I get this output):  
error: unable to download ‘file://./linuxx64-23.8.0.39.tar.gz’: URL using bad/illegal format or missing URL (3)

I shouldn’t add a url right? Cause I’ve downloaded the file already.

In my configuration.nix I’ve added the following lines which I don’t know yet if they’re going to work:  
pkg citrix-workspace  
and I’ve added the following config:  
nixpkgs.overlays = [  
( self: super:  
let  
extraCerts = [/etc/ssl/certs];  
in {  
citrix\_workspace = super.citrix\_workspace.override {  
inherit extraCerts;  
};  
}  
)  
];

This config I’ve got from this thread:

> [@Citrix Workspace installation](https://discourse.nixos.org/t/citrix-workspace-installation/9777):
>
> Hi, I hope I’m in a right place, been searching for most appropriate thread to post this, and it seems to me that this is it. I have a problem when I follow the instructions given at [Nixpkgs 23.11 manual | Nix & NixOS](https://nixos.org/manual/nixpkgs/stable/#sec-citrix-custom-certs) because it is not clear to me what to do to acomplish the following: "In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using symlinkJoin [the code follows in the link above] " Where shoul…

Sorry if I missed something to include or to explain a bit better. I’m an absolute beginner when it comes to Nixos. I hope someone can help me out here. Thanks in advance.

Tim

---

<div class="post-metadata">

### Author: ![tim1980](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/t/e79b87/32.png) [@tim1980](https://discourse.nixos.org/u/tim1980)
#### Post date: [September 14, 2023, 5:46pm UTC](https://discourse.nixos.org/t/cant-install-citrix-workspace/32806/2 "2023-09-14T17:46:44Z")

</div>

I’ve solved the issue. Tested it in the live environment.

First allow unfree packages (I did it just temporary)  
export NIXPKGS\_ALLOW\_UNFREE=1

Then download the correct tar file from citrix:  
It’s important to get the correct version:  
linuxx64-22.12.0.12.tar.gz so check for older files.

Then add the package to the nix store (this is where I got stuck, beginners mistake I’m affraid)

nix store add-file /home/nixos/Downloads/linuxx64-22.12.0.12.tar.gz --extra-experimental-features nix-command

Then fetch the url:  
nix-prefetch-url file://$PWD/linuxx64-22.12.0.12.tar.gz

Then install the workspace app (I did it temporary in the nix environment)  
nix-env -iA nixos.citrix\_workspace

I’ve started up the workspace app and agreed. I’ve also installed Chromium (checked on serveral distros but Firefox doesn’t work so far).  
I’ve downloaded the .ica file. I had to choose ‘open with’ Citrix workspace engine via Nautilus.

Then it started up flawlessly.  
If someone has any questions please feel free to ask.

---

<div class="post-metadata">

### Author: ![mars0008](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mars0008/32/11649_2.png) [@mars0008](https://discourse.nixos.org/u/mars0008)
#### Post date: [December 2, 2023, 11:56am UTC](https://discourse.nixos.org/t/cant-install-citrix-workspace/32806/3 "2023-12-02T11:56:18Z")

</div>

thanks for sharing your solution. It is imperative based and goes against the declarative nixos pillar. is there a way to do this declaratively?

---

<div class="post-metadata">

### Author: ![Convert](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/c/ee59a6/32.png) [@Convert](https://discourse.nixos.org/u/Convert)
#### Post date: [February 18, 2024, 9:37pm UTC](https://discourse.nixos.org/t/cant-install-citrix-workspace/32806/4 "2024-02-18T21:37:39Z")

</div>

@tim1980 Thanks, just followed your method and it worked for me.
