From ec7d5c518c3627d9e33b94a79e81d20dadd87510 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 22 Jun 2023 20:30:29 +0300 Subject: [PATCH] splice.nix: finish nativeDrv,crossDrv removal --- lib/customisation.nix | 6 ------ pkgs/top-level/splice.nix | 3 --- 2 files changed, 9 deletions(-) diff --git a/lib/customisation.nix b/lib/customisation.nix index fe32e890f357..a9281b1ab698 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -46,12 +46,6 @@ rec { // (drv.passthru or {}) // - # TODO(@Artturin): remove before release 23.05 and only have __spliced. - (lib.optionalAttrs (drv ? crossDrv && drv ? nativeDrv) { - crossDrv = overrideDerivation drv.crossDrv f; - nativeDrv = overrideDerivation drv.nativeDrv f; - }) - // lib.optionalAttrs (drv ? __spliced) { __spliced = {} // (lib.mapAttrs (_: sDrv: overrideDerivation sDrv f) drv.__spliced); }); diff --git a/pkgs/top-level/splice.nix b/pkgs/top-level/splice.nix index ce536aa1fd2f..0a138947e8da 100644 --- a/pkgs/top-level/splice.nix +++ b/pkgs/top-level/splice.nix @@ -45,9 +45,6 @@ let valueHostTarget = pkgsHostTarget.${name} or { }; valueTargetTarget = pkgsTargetTarget.${name} or { }; augmentedValue = defaultValue - # TODO(@Artturin): remove before release 23.05 and only have __spliced. - // (lib.optionalAttrs (pkgsBuildHost ? ${name}) { nativeDrv = lib.warn "use ${name}.__spliced.buildHost instead of ${name}.nativeDrv" valueBuildHost; }) - // (lib.optionalAttrs (pkgsHostTarget ? ${name}) { crossDrv = lib.warn "use ${name}.__spliced.hostTarget instead of ${name}.crossDrv" valueHostTarget; }) // { __spliced = (lib.optionalAttrs (pkgsBuildBuild ? ${name}) { buildBuild = valueBuildBuild; })