Skip to content

Commit

Permalink
treewide: remove pkgs = __splicedPackages
Browse files Browse the repository at this point in the history
Now that `pkgs` is `__splicedPackages` on cross we can remove these
variables I set.
  • Loading branch information
Artturin committed Oct 31, 2024
1 parent 0793f85 commit 4bb1955
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 22 deletions.
3 changes: 1 addition & 2 deletions pkgs/development/beam-modules/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib, __splicedPackages, erlang }:
{ lib, pkgs, erlang }:

let
pkgs = __splicedPackages;
inherit (lib) makeExtensible;

lib' = pkgs.callPackage ./lib.nix { };
Expand Down
5 changes: 1 addition & 4 deletions pkgs/development/beam-modules/lib.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ __splicedPackages, lib }:
{ pkgs, lib }:

let
pkgs = __splicedPackages;
in
rec {

/* Similar to callPackageWith/callPackage, but without makeOverridable
Expand Down
4 changes: 0 additions & 4 deletions pkgs/development/interpreters/perl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ let
# - adds spliced package sets to the package set
({ stdenv, pkgs, perl, callPackage, makeScopeWithSplicing' }: let
perlPackagesFun = callPackage ../../../top-level/perl-packages.nix {
# allow 'perlPackages.override { pkgs = pkgs // { imagemagick = imagemagickBig; }; }' like in python3Packages
# most perl packages aren't called with callPackage so it's not possible to override their arguments individually
# the conditional is because the // above won't be applied to __splicedPackages and hopefully no one is doing that when cross-compiling
pkgs = if stdenv.buildPlatform != stdenv.hostPlatform then pkgs.__splicedPackages else pkgs;
inherit stdenv;
perl = self;
};
Expand Down
12 changes: 4 additions & 8 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12820,9 +12820,7 @@ with pkgs;

tmux-xpanes = callPackage ../tools/misc/tmux-xpanes { };

tmuxPlugins = recurseIntoAttrs (callPackage ../misc/tmux-plugins {
pkgs = pkgs.__splicedPackages;
});
tmuxPlugins = recurseIntoAttrs (callPackage ../misc/tmux-plugins { });

tncattach = callPackage ../applications/radio/tncattach { };

Expand Down Expand Up @@ -13879,7 +13877,7 @@ with pkgs;

yarn-berry = callPackage ../development/tools/yarn-berry { };

yarn2nix-moretea = callPackage ../development/tools/yarn2nix-moretea/yarn2nix { pkgs = pkgs.__splicedPackages; };
yarn2nix-moretea = callPackage ../development/tools/yarn2nix-moretea/yarn2nix { };

inherit (yarn2nix-moretea)
yarn2nix
Expand Down Expand Up @@ -14928,7 +14926,6 @@ with pkgs;

idrisPackages = dontRecurseIntoAttrs (callPackage ../development/idris-modules {
idris-no-deps = haskellPackages.idris;
pkgs = pkgs.__splicedPackages;
});

idris = idrisPackages.with-packages [ idrisPackages.base ] ;
Expand Down Expand Up @@ -22564,7 +22561,7 @@ with pkgs;
});

libsForQt5 = (recurseIntoAttrs (import ./qt5-packages.nix {
inherit lib __splicedPackages makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget;
inherit lib makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget pkgs;
})) // { __recurseIntoDerivationForReleaseJobs = true; };

# plasma5Packages maps to the Qt5 packages set that is used to build the plasma5 desktop
Expand All @@ -22576,7 +22573,7 @@ with pkgs;
qt6 = recurseIntoAttrs (callPackage ../development/libraries/qt-6 { });

qt6Packages = recurseIntoAttrs (import ./qt6-packages.nix {
inherit lib __splicedPackages makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget kdePackages;
inherit lib makeScopeWithSplicing' generateSplicesForMkScope pkgsHostTarget pkgs kdePackages;
stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
});

Expand Down Expand Up @@ -34810,7 +34807,6 @@ with pkgs;

openraPackages_2019 = import ../games/openra_2019 {
inherit lib;
pkgs = pkgs.__splicedPackages;
};

openra_2019 = openraPackages_2019.engines.release;
Expand Down
3 changes: 1 addition & 2 deletions pkgs/top-level/qt5-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@


{ lib
, __splicedPackages
, makeScopeWithSplicing'
, generateSplicesForMkScope
, pkgsHostTarget
, pkgs
}:

let
pkgs = __splicedPackages;
# qt5 set should not be pre-spliced to prevent spliced packages being a part of an unspliced set
# 'pkgsCross.aarch64-multiplatform.pkgsBuildTarget.targetPackages.libsForQt5.qtbase' should not have a `__spliced` but if qt5 is pre-spliced then it will have one.
# pkgsHostTarget == pkgs
Expand Down
3 changes: 1 addition & 2 deletions pkgs/top-level/qt6-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
# this file.

{ lib
, __splicedPackages
, makeScopeWithSplicing'
, generateSplicesForMkScope
, stdenv
, pkgsHostTarget
, pkgs
, kdePackages
}:

let
pkgs = __splicedPackages;
# qt6 set should not be pre-spliced to prevent spliced packages being a part of an unspliced set
# 'pkgsCross.aarch64-multiplatform.pkgsBuildTarget.targetPackages.qt6Packages.qtbase' should not have a `__spliced` but if qt6 is pre-spliced then it will have one.
# pkgsHostTarget == pkgs
Expand Down

0 comments on commit 4bb1955

Please sign in to comment.