1{ lib, callPackage }:
2
3# For detailed information about the Citrix source-tarball, please refer to the OEM
4# reference guide: https://developer-docs.citrix.com/en-us/citrix-workspace-app-for-linux/citrix-workspace-app-for-linux-oem-reference-guide
5
6let
7 inherit (callPackage ./sources.nix { }) supportedVersions unsupportedVersions;
8
9 toAttrName = x: "citrix_workspace_${builtins.replaceStrings [ "." ] [ "_" ] x}";
10
11 unsupported = lib.listToAttrs (
12 map (
13 x:
14 lib.nameValuePair (toAttrName x) (throw ''
15 Citrix Workspace at version ${x} is not supported anymore!
16
17 Actively supported releases are listed here:
18 https://www.citrix.com/support/product-lifecycle/workspace-app.html
19 '')
20 ) unsupportedVersions
21 );
22
23 supported = lib.mapAttrs' (
24 attr: versionInfo: lib.nameValuePair (toAttrName attr) (callPackage ./generic.nix versionInfo)
25 ) supportedVersions;
26in
27supported // unsupported