mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
f6a68410f8
Citrix workspace is replacing Citrix receiver as per https://docs.citrix.com/en-us/citrix-workspace-app.html
20 lines
518 B
Nix
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
|
|
'';
|
|
}
|