Skip to content

Commit 29ef7a2

Browse files
authored
treewide: remove deprecations after 24.11 branch-off (#358735)
2 parents 4633a7c + 0944532 commit 29ef7a2

File tree

10 files changed

+5
-94
lines changed

10 files changed

+5
-94
lines changed

doc/languages-frameworks/chicken.section.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ all the other eggs:
6060

6161
```nix
6262
let
63-
myChickenPackages = pkgs.chickenPackages.overrideScope' (self: super: {
63+
myChickenPackages = pkgs.chickenPackages.overrideScope (self: super: {
6464
# The chicken package itself can be overridden to effect the whole ecosystem.
6565
# chicken = super.chicken.overrideAttrs {
6666
# src = ...
6767
# };
6868
69-
chickenEggs = super.chickenEggs.overrideScope' (eggself: eggsuper: {
69+
chickenEggs = super.chickenEggs.overrideScope (eggself: eggsuper: {
7070
srfi-180 = eggsuper.srfi-180.overrideAttrs {
7171
# path to a local copy of srfi-180
7272
src = <...>;

lib/customisation.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,6 @@ rec {
543543
newScope = scope: newScope (self // scope);
544544
callPackage = self.newScope {};
545545
overrideScope = g: makeScope newScope (extends g f);
546-
# Remove after 24.11 is released.
547-
overrideScope' = g: warnIf (isInOldestRelease 2311)
548-
"`overrideScope'` (from `lib.makeScope`) has been renamed to `overrideScope`."
549-
(makeScope newScope (extends g f));
550546
packages = f;
551547
};
552548
in self;

pkgs/build-support/singularity-tools/default.nix

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,6 @@ let
2222
defaultSingularity = singularity;
2323
in
2424
lib.makeExtensible (final: {
25-
# TODO(@ShamrockLee): Remove after Nixpkgs 24.11 branch-off.
26-
shellScript =
27-
lib.warn
28-
"`singularity-tools.shellScript` is deprecated. Use `writeScript`, `writeShellScripts` or `writers.writeBash` instead."
29-
(
30-
name: text:
31-
writeScript name ''
32-
#!${runtimeShell}
33-
set -e
34-
${text}
35-
''
36-
);
37-
38-
# TODO(@ShamrockLee): Remove after Nixpkgs 24.11 branch-off.
39-
mkLayer =
40-
lib.warn
41-
"`singularity-tools.mkLayer` is deprecated, as it is no longer used to implement `singularity-tools.buildImages`."
42-
(
43-
{
44-
name,
45-
contents ? [ ],
46-
# May be "apptainer" instead of "singularity"
47-
projectName ? (singularity.projectName or "singularity"),
48-
}:
49-
runCommand "${projectName}-layer-${name}" { inherit contents; } ''
50-
mkdir $out
51-
for f in $contents ; do
52-
cp -ra $f $out/
53-
done
54-
''
55-
);
56-
5725
buildImage =
5826
{
5927
name,

pkgs/by-name/ci/cinnamon-common/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ let
6868
requests
6969
]);
7070
in
71+
# TODO (after 25.05 branch-off): Rename to pkgs.cinnamon
7172
stdenv.mkDerivation rec {
7273
pname = "cinnamon-common";
7374
version = "6.2.9";

pkgs/desktops/cinnamon/default.nix

Lines changed: 0 additions & 44 deletions
This file was deleted.

pkgs/development/interpreters/python/passthrufun.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ in rec {
9191
pythonAtLeast = lib.versionAtLeast pythonVersion;
9292
pythonOlder = lib.versionOlder pythonVersion;
9393
inherit hasDistutilsCxxPatch;
94-
# Remove after 24.11 is released.
95-
pythonForBuild =
96-
lib.warnIf (lib.oldestSupportedReleaseIsAtLeast 2311) "`pythonForBuild` (from `python*`) has been renamed to `pythonOnBuildForHost`"
97-
pythonOnBuildForHost_overridden;
9894
pythonOnBuildForHost = pythonOnBuildForHost_overridden;
9995

10096
tests = callPackage ./tests.nix {

pkgs/development/libraries/avahi/default.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
, withPython ? false
2323
}:
2424

25-
# Added 2024-09-03. Drop this assertion after 24.11 is released.
26-
assert lib.assertMsg (config.avahi or {} == {}) "config.avahi has been removed; please use an overlay or services.avahi.package to configure the avahi package.";
27-
2825
stdenv.mkDerivation rec {
2926
pname = "avahi${lib.optionalString withLibdnssdCompat "-compat"}";
3027
version = "0.8";

pkgs/top-level/aliases.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ mapAliases {
9191
adoptopenjdk-openj9-bin-15 = throw "adoptopenjdk has been removed as the upstream project is deprecated. JDK 15 is also EOL. Consider using `semeru-bin-17`."; # Added 2024-05-09
9292
adoptopenjdk-openj9-bin-16 = throw "adoptopenjdk has been removed as the upstream project is deprecated. JDK 16 is also EOL. Consider using `semeru-bin-17`."; # Added 2024-05-09
9393
adoptopenjdk-openj9-bin-8 = throw "adoptopenjdk has been removed as the upstream project is deprecated. Consider using `semeru-bin-8`."; # Added 2024-05-09
94-
# Post 24.11 branch-off, this should throw an error
95-
addOpenGLRunpath = addDriverRunpath; # Added 2024-05-25
94+
addOpenGLRunpath = throw "addOpenGLRunpath has been removed. Use addDriverRunpath instead."; # Converted to throw 2024-11-17
9695
aeon = throw "aeon has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2024-07-15
9796
afl = throw "afl has been removed as the upstream project was archived. Consider using 'aflplusplus'"; # Added 2024-04-21
9897
agda-pkg = throw "agda-pkg has been removed due to being unmaintained"; # Added 2024-09-10"
@@ -211,6 +210,7 @@ mapAliases {
211210
ChowKick = chow-kick; # Added 2024-06-12
212211
CHOWTapeModel = chow-tape-model; # Added 2024-06-12
213212
chrome-gnome-shell = gnome-browser-connector; # Added 2022-07-27
213+
cinnamon = throw "The cinnamon scope has been removed and all packages have been moved to the top-level"; # Added 2024-11-25
214214
cloog = throw "cloog has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-09-13
215215
cloog_0_18_0 = throw "cloog_0_18_0 has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-09-13
216216
cloogppl = throw "cloogppl has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-09-13

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17421,8 +17421,6 @@ with pkgs;
1742117421
appls = [ prio ];
1742217422
};
1742317423

17424-
cinnamon = recurseIntoAttrs (callPackage ../desktops/cinnamon { });
17425-
1742617424
deepin = recurseIntoAttrs (callPackage ../desktops/deepin { });
1742717425

1742817426
enlightenment = recurseIntoAttrs (callPackage ../desktops/enlightenment { });

pkgs/top-level/release-attrpaths-superset.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ let
8080
mkDerivation = true;
8181
overrideDerivation = true;
8282
overrideScope = true;
83-
overrideScope' = true;
8483

8584
# Special case: lib/types.nix leaks into a lot of nixos-related
8685
# derivations, and does not eval deeply.

0 commit comments

Comments
 (0)