Skip to content

Commit 398fa48

Browse files
lixPackageSets.lix_2_9{1,2}: drop (NixOS#426260)
2 parents 83d22f1 + db84814 commit 398fa48

File tree

1 file changed

+77
-145
lines changed

1 file changed

+77
-145
lines changed
Lines changed: 77 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
lib,
3+
config,
34
stdenv,
45
makeScopeWithSplicing',
56
generateSplicesForMkScope,
@@ -127,161 +128,92 @@ let
127128
};
128129
};
129130
};
130-
in
131-
lib.makeExtensible (self: {
132-
inherit makeLixScope;
133-
134-
lix_2_91 = self.makeLixScope {
135-
attrName = "lix_2_91";
136-
137-
lix-args = rec {
138-
version = "2.91.3";
139-
140-
src = fetchFromGitHub {
141-
owner = "lix-project";
142-
repo = "lix";
143-
rev = version;
144-
hash = "sha256-b5d+HnPcyHz0ZJW1+LZl4qm4LGTB/TiaDFQVlVL2xpE=";
145-
};
146-
147-
patches = [
148-
# Support for lowdown >= 1.4, https://gerrit.lix.systems/c/lix/+/3731
149-
(fetchpatch2 {
150-
name = "lix-2.91-lowdown-1.4.0.patch";
151-
url = "https://git.lix.systems/lix-project/lix/commit/ecff59d77371b21fef229c33ebb629bc49a8fad5.patch";
152-
sha256 = "sha256-2M5oId5kObwzpw67rddAPI2RbWPEVlGBrMUXZWqqmEo=";
153-
})
154-
];
155-
156-
docCargoDeps = rustPlatform.fetchCargoVendor {
157-
name = "lix-doc-${version}";
158-
inherit src;
159-
sourceRoot = "${src.name or src}/lix-doc";
160-
hash = "sha256-U820gvcbQIBaFr2OWPidfFIDXycDFGgXX1NpWDDqENs=";
161-
};
162-
};
163131

164-
nix-eval-jobs-args = {
165-
version = "2.91.0";
166-
src = fetchgit {
167-
url = "https://git.lix.systems/lix-project/nix-eval-jobs.git";
168-
# https://git.lix.systems/lix-project/nix-eval-jobs/commits/branch/release-2.91
169-
rev = "1f98b0c016a6285f29ad278fa5cd82b8f470d66a";
170-
hash = "sha256-ZJKOC/iLuO8qjPi9/ql69Vgh3NIu0tU6CSI0vbiCrKA=";
171-
};
172-
};
173-
};
174-
175-
lix_2_92 = self.makeLixScope {
176-
attrName = "lix_2_92";
177-
178-
lix-args = rec {
179-
version = "2.92.3";
180-
181-
src = fetchFromGitHub {
182-
owner = "lix-project";
183-
repo = "lix";
184-
rev = version;
185-
hash = "sha256-iP2iUDxA99RcgQyZROs7bQw8pqxa1vFudRqjAIHg9Iw=";
186-
};
187-
188-
patches = [
189-
# Support for lowdown >= 1.4, https://gerrit.lix.systems/c/lix/+/3731
190-
(fetchpatch2 {
191-
name = "lix-lowdown-1.4.0.patch";
192-
url = "https://git.lix.systems/lix-project/lix/commit/858de5f47a1bfd33835ec97794ece339a88490f1.patch";
193-
hash = "sha256-FfLO2dFSWV1qwcupIg8dYEhCHir2XX6/Hs89eLwd+SY=";
194-
})
195-
];
132+
removedMessage = version: ''
133+
Lix ${version} is now removed from this revision of Nixpkgs. Consider upgrading to stable or the latest version.
196134
197-
cargoDeps = rustPlatform.fetchCargoVendor {
198-
name = "lix-${version}";
199-
inherit src;
200-
hash = "sha256-YMyNOXdlx0I30SkcmdW/6DU0BYc3ZOa2FMJSKMkr7I8=";
201-
};
202-
};
135+
If you notice a problem while upgrading disrupting your workflows which did not occur in version ${version}, please reach out to the Lix team.
136+
'';
137+
in
138+
lib.makeExtensible (
139+
self:
140+
{
141+
inherit makeLixScope;
142+
143+
lix_2_93 = self.makeLixScope {
144+
attrName = "lix_2_93";
145+
146+
lix-args = rec {
147+
version = "2.93.3";
148+
149+
src = fetchFromGitea {
150+
domain = "git.lix.systems";
151+
owner = "lix-project";
152+
repo = "lix";
153+
rev = version;
154+
hash = "sha256-Oqw04eboDM8rrUgAXiT7w5F2uGrQdt8sGX+Mk6mVXZQ=";
155+
};
203156

204-
nix-eval-jobs-args = rec {
205-
version = "2.92.0";
206-
src = fetchgit {
207-
url = "https://git.lix.systems/lix-project/nix-eval-jobs.git";
208-
rev = version;
209-
hash = "sha256-tPr61X9v/OMVt7VXOs1RRStciwN8gDGxEKx+h0/Fg48=";
157+
cargoDeps = rustPlatform.fetchCargoVendor {
158+
name = "lix-${version}";
159+
inherit src;
160+
hash = "sha256-YMyNOXdlx0I30SkcmdW/6DU0BYc3ZOa2FMJSKMkr7I8=";
161+
};
210162
};
211163
};
212-
};
213164

214-
lix_2_93 = self.makeLixScope {
215-
attrName = "lix_2_93";
165+
git = self.makeLixScope {
166+
attrName = "git";
216167

217-
lix-args = rec {
218-
version = "2.93.3";
219-
220-
src = fetchFromGitea {
221-
domain = "git.lix.systems";
222-
owner = "lix-project";
223-
repo = "lix";
224-
rev = version;
225-
hash = "sha256-Oqw04eboDM8rrUgAXiT7w5F2uGrQdt8sGX+Mk6mVXZQ=";
226-
};
168+
lix-args = rec {
169+
version = "2.94.0-pre-20250807_${builtins.substring 0 12 src.rev}";
227170

228-
patches = [
229-
# Support for lowdown >= 1.4, https://gerrit.lix.systems/c/lix/+/3731
230-
(fetchpatch2 {
231-
name = "lix-lowdown-1.4.0.patch";
232-
url = "https://git.lix.systems/lix-project/lix/commit/858de5f47a1bfd33835ec97794ece339a88490f1.patch";
233-
hash = "sha256-FfLO2dFSWV1qwcupIg8dYEhCHir2XX6/Hs89eLwd+SY=";
234-
})
235-
];
171+
src = fetchFromGitea {
172+
domain = "git.lix.systems";
173+
owner = "lix-project";
174+
repo = "lix";
175+
rev = "8bbd5e1d0df9c31b4d86ba07bc85beb952e42ccb";
176+
hash = "sha256-P+WiN95OjCqHhfygglS/VOFTSj7qNdL5XQDo2wxhQqg=";
177+
};
236178

237-
cargoDeps = rustPlatform.fetchCargoVendor {
238-
name = "lix-${version}";
239-
inherit src;
240-
hash = "sha256-YMyNOXdlx0I30SkcmdW/6DU0BYc3ZOa2FMJSKMkr7I8=";
179+
cargoDeps = rustPlatform.fetchCargoVendor {
180+
name = "lix-${version}";
181+
inherit src;
182+
hash = "sha256-APm8m6SVEAO17BBCka13u85/87Bj+LePP7Y3zHA3Mpg=";
183+
};
241184
};
242185
};
243-
};
244-
245-
git = self.makeLixScope {
246-
attrName = "git";
247-
248-
lix-args = rec {
249-
version = "2.94.0-pre-20250807_${builtins.substring 0 12 src.rev}";
250186

251-
src = fetchFromGitea {
252-
domain = "git.lix.systems";
253-
owner = "lix-project";
254-
repo = "lix";
255-
rev = "8bbd5e1d0df9c31b4d86ba07bc85beb952e42ccb";
256-
hash = "sha256-P+WiN95OjCqHhfygglS/VOFTSj7qNdL5XQDo2wxhQqg=";
187+
latest = self.lix_2_93;
188+
189+
stable = self.lix_2_93;
190+
191+
# Previously, `nix-eval-jobs` was not packaged here, so we export an
192+
# attribute with the previously-expected structure for compatibility. This
193+
# is also available (for now) as `pkgs.lixVersions`.
194+
renamedDeprecatedLixVersions =
195+
let
196+
mkAlias =
197+
version:
198+
lib.warnOnInstantiate "'lixVersions.${version}' has been renamed to 'lixPackageSets.${version}.lix'"
199+
self.${version}.lix;
200+
in
201+
lib.dontRecurseIntoAttrs {
202+
# NOTE: Do not add new versions of Lix here.
203+
stable = mkAlias "stable";
204+
latest = mkAlias "latest";
205+
}
206+
// lib.optionalAttrs config.allowAliases {
207+
# Legacy removed versions. We keep their aliases until the lixPackageSets one is dropped.
208+
lix_2_90 = mkAlias "lix_2_90";
209+
lix_2_91 = mkAlias "lix_2_91";
257210
};
258-
259-
cargoDeps = rustPlatform.fetchCargoVendor {
260-
name = "lix-${version}";
261-
inherit src;
262-
hash = "sha256-APm8m6SVEAO17BBCka13u85/87Bj+LePP7Y3zHA3Mpg=";
263-
};
264-
};
265-
};
266-
267-
latest = self.lix_2_93;
268-
269-
stable = self.lix_2_93;
270-
271-
# Previously, `nix-eval-jobs` was not packaged here, so we export an
272-
# attribute with the previously-expected structure for compatibility. This
273-
# is also available (for now) as `pkgs.lixVersions`.
274-
renamedDeprecatedLixVersions =
275-
let
276-
mkAlias =
277-
version:
278-
lib.warnOnInstantiate "'lixVersions.${version}' has been renamed to 'lixPackageSets.${version}.lix'"
279-
self.${version}.lix;
280-
in
281-
lib.dontRecurseIntoAttrs {
282-
lix_2_91 = mkAlias "lix_2_91";
283-
# NOTE: Do not add new versions of Lix here.
284-
stable = mkAlias "stable";
285-
latest = mkAlias "latest";
286-
};
287-
})
211+
}
212+
// lib.optionalAttrs config.allowAliases {
213+
# Removed versions.
214+
# When removing a version, add an alias with a date attached to it so we can clean it up after a while.
215+
lix_2_90 = throw (removedMessage "2.90"); # added in 2025-09-11
216+
lix_2_91 = throw (removedMessage "2.91"); # added in 2025-09-11
217+
lix_2_92 = throw (removedMessage "2.92"); # added in 2025-09-11
218+
}
219+
)

0 commit comments

Comments
 (0)