Skip to content

Commit

Permalink
citrix-receiver: fix wrapper, direct dl url, $PWD needs escaping
Browse files Browse the repository at this point in the history
(edited by @obadz, closes #24320)

(cherry picked from commit 7035325)
  • Loading branch information
veprbl authored and obadz committed Mar 26, 2017
1 parent beab307 commit 8c6e917
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pkgs/applications/networking/remote/citrix-receiver/default.nix
Expand Up @@ -22,14 +22,15 @@
, alsaLib
}:

stdenv.mkDerivation rec {
let versionRec = { major = "13"; minor = "4"; patch = "0"; };
in stdenv.mkDerivation rec {
name = "citrix-receiver-${version}";
version = "13.4.0";
version = with versionRec; "${major}.${minor}.${patch}";
homepage = https://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-latest.html;

prefixWithBitness = if stdenv.is64bit then "linuxx64" else "linuxx86";

src = requireFile rec {
src = with versionRec; requireFile rec {
name = "${prefixWithBitness}-${version}.10109380.tar.gz";
sha256 =
if stdenv.is64bit
Expand All @@ -41,12 +42,14 @@ stdenv.mkDerivation rec {
${homepage}
(if you do not find version ${version} there, try https://www.citrix.com/downloads/citrix-receiver/)
(if you do not find version ${version} there, try at
https://www.citrix.com/downloads/citrix-receiver/legacy-receiver-for-linux/receiver-for-linux-latest-${major}-${minor}.html
or at https://www.citrix.com/downloads/citrix-receiver/ under "Earlier Versions of Receiver for Linux")
Once you have downloaded the file, please use the following command and re-run the
installation:
nix-prefetch-url file://$PWD/${name}
nix-prefetch-url file://\$PWD/${name}
'';
};

Expand Down Expand Up @@ -135,7 +138,8 @@ stdenv.mkDerivation rec {
echo "Wrapping wfica..."
mkdir "$out/bin"
makeWrapper "$ICAInstDir/wfica -icaroot $ICAInstDir" "$out/bin/wfica" \
makeWrapper "$ICAInstDir/wfica" "$out/bin/wfica" \
--add-flags "-icaroot $ICAInstDir" \
--set ICAROOT "$ICAInstDir" \
--set GTK_PATH "${gtk2.out}/lib/gtk-2.0:${gnome3.gnome_themes_standard}/lib/gtk-2.0" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
Expand Down

0 comments on commit 8c6e917

Please sign in to comment.