nixpkgs/pkgs/applications/networking/remote/citrix-workspace/wrapper.nix
Garry Cairns f6a68410f8 Adds Citrix workspace app package
Citrix workspace is replacing Citrix receiver as per
https://docs.citrix.com/en-us/citrix-workspace-app.html
2019-05-28 08:50:47 +02:00

20 lines
518 B
Nix

{ citrix_workspace, extraCerts ? [], symlinkJoin }:
let
mkCertCopy = certPath:
"cp ${certPath} $out/opt/citrix-icaclient/keystore/cacerts/";
in
if builtins.length extraCerts == 0 then citrix_workspace else symlinkJoin {
name = "citrix-with-extra-certs-${citrix_workspace.version}";
paths = [ citrix_workspace ];
postBuild = ''
${builtins.concatStringsSep "\n" (map mkCertCopy extraCerts)}
sed -i -E "s,-icaroot (.+citrix-icaclient),-icaroot $out/opt/citrix-icaclient," $out/bin/wfica
'';
}