git.iko.soy/typeable/nixpkgs
on master help sign in
citrix_receiver: remove old versions

The versions 13.8.0 and 13.9.{0,1} will be EOLed before the end of 19.03 and should be dropped. To provide an easy upgrade path, all unsupported versions will throw an evaluation error. All versions that are about the be EOLed can be added there as well. For now, all of those deprecated versions are still referenced in `all-packages.nix`, but should be removed before the next release. See also https://www.citrix.co.uk/support/product-lifecycle/milestones/receiver.html

commitd4a570ad573484e887f92b48835745ff337c0a46 authorMaximilian Bosch <maximilian@mbosch.me> dateMon 11 Mar 2019, 15:36 (8 years ago) parent5eb3edc
1 file changed+22−43
pkgs/applications/networking/remote/citrix-receiver/default.nix+22−43
pkgs/applications/networking/remote/citrix-receiver/default.nix+22−43
@@ -38,51 +38,30 @@ let
3838 };
3939 });
4040
41− versionInfo = {
42− "13.8.0" = {
43− major = "13";
44− minor = "8";
45− patch = "0";
46− x64hash = "FDF5991CCD52B2B98289D7B2FB46D492D3E4032846D4AFA52CAA0F8AC0578931";
47− x86hash = "E0CFB43312BF79F753514B11F7B8DE4529823AE4C92D1B01E8A2C34F26AC57E7";
48− x64suffix = "10299729";
49− x86suffix = "10299729";
50− homepage = https://www.citrix.com/downloads/citrix-receiver/legacy-receiver-for-linux/receiver-for-linux-138.html;
51− };
52−
53− "13.9.0" = {
54− major = "13";
55− minor = "9";
56− patch = "0";
57− x64hash = "00l18s7i9yky3ddabwljwsf7fx4cjgjn9hfd74j0x1v4gl078nl9";
58− x86hash = "117fwynpxfnrw98933y8z8v2q4g6ycs1sngvpbki2qj09bjkwmag";
59− x64suffix = "102";
60− x86suffix = "102";
61− homepage = https://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-latest.html; # This version has disappeared from Citrix's website... *sigh*
62− };
63−
64− "13.9.1" = {
65− major = "13";
66− minor = "9";
67− patch = "1";
68− x64hash = "A9A9157CE8C287E8AA11447A0E3C3AB7C227330E9D8882C6F7B938A4DD5925BC";
69− x86hash = "A93E9770FD10FDD3586A2D47448559EA037265717A7000B9BD2B1DCCE7B0A483";
70− x64suffix = "6";
71− x86suffix = "6";
72− homepage = https://www.citrix.com/downloads/citrix-receiver/legacy-receiver-for-linux/receiver-for-linux-1391.html;
41+ versionInfo = let
42+ supportedVersions = {
43+ "13.10.0" = {
44+ major = "13";
45+ minor = "10";
46+ patch = "0";
47+ x64hash = "7025688C7891374CDA11C92FC0BA2FA8151AEB4C4D31589AD18747FAE943F6EA";
48+ x86hash = "2DCA3C8EDED11C5D824D579BC3A6B7D531EAEDDCBFB16E91B5702C72CAE9DEE4";
49+ x64suffix = "20";
50+ x86suffix = "20";
51+ homepage = https://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-latest.html;
52+ };
7353 };
7454
75− "13.10.0" = {
76− major = "13";
77− minor = "10";
78− patch = "0";
79− x64hash = "7025688C7891374CDA11C92FC0BA2FA8151AEB4C4D31589AD18747FAE943F6EA";
80− x86hash = "2DCA3C8EDED11C5D824D579BC3A6B7D531EAEDDCBFB16E91B5702C72CAE9DEE4";
81− x64suffix = "20";
82− x86suffix = "20";
83− homepage = https://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-latest.html;
84− };
85− };
55+ # break an evaluation for old Citrix versions rather than exiting with
56+ # an "attribute name not found" error to avoid confusion.
57+ deprecatedVersions = let
58+ versions = [ "13.8.0" "13.9.0" "13.9.1" ];
59+ in
60+ lib.listToAttrs
61+ (lib.flip map versions
62+ (v: lib.nameValuePair v (throw "Unsupported citrix_receiver version: ${v}")));
63+ in
64+ deprecatedVersions // supportedVersions;
8665
8766 citrixReceiverForVersion = { major, minor, patch, x86hash, x64hash, x86suffix, x64suffix, homepage }:
8867 stdenv.mkDerivation rec {