citrix_workspace: remove unused code for unsupported versions

These unused version attributes were not imported into all-packages.nix
anymore anyway, so remove them entirely.
This commit is contained in:
Wolfgang Walther
2026-01-10 01:18:05 -06:00
committed by Austin Horstman
parent cd40da0185
commit 919bcf965c
2 changed files with 5 additions and 32 deletions
@@ -4,24 +4,10 @@
# reference guide: https://developer-docs.citrix.com/en-us/citrix-workspace-app-for-linux/citrix-workspace-app-for-linux-oem-reference-guide
let
inherit (callPackage ./sources.nix { }) supportedVersions unsupportedVersions;
supportedVersions = callPackage ./sources.nix { };
toAttrName = x: "citrix_workspace_${builtins.replaceStrings [ "." ] [ "_" ] x}";
unsupported = lib.listToAttrs (
map (
x:
lib.nameValuePair (toAttrName x) (throw ''
Citrix Workspace at version ${x} is not supported anymore!
Actively supported releases are listed here:
https://www.citrix.com/support/product-lifecycle/workspace-app.html
'')
) unsupportedVersions
);
supported = lib.mapAttrs' (
attr: versionInfo: lib.nameValuePair (toAttrName attr) (callPackage ./generic.nix versionInfo)
) supportedVersions;
in
supported // unsupported
lib.mapAttrs' (
attr: versionInfo: lib.nameValuePair (toAttrName attr) (callPackage ./generic.nix versionInfo)
) supportedVersions
@@ -106,18 +106,5 @@ let
homepage = "https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html";
};
};
# Retain attribute-names for abandoned versions of Citrix workspace to
# provide a meaningful error-message if it's attempted to use such an old one.
#
# The lifespans of Citrix products can be found here:
# https://www.citrix.com/support/product-lifecycle/workspace-app.html
unsupportedVersions = [
"23.02.0"
"23.07.0"
"23.09.0"
];
in
{
inherit supportedVersions unsupportedVersions;
}
supportedVersions