From 29ebc6ff472c8aaabf2561e7eb51455c800fc3b4 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 18 Jun 2025 19:15:12 +0200 Subject: [PATCH] scala: refactor bare to passthru The `.bare` attribute is probably only supposed to be used inside nixpkgs, i.e. for `scala-next`. Still, this link breaks in some obscure override scenarios, so let's improve that with a passthru. Also: Any attribute concatenation onto the result of mkDerivation will break some overrideability. --- pkgs/development/compilers/scala/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/scala/default.nix b/pkgs/development/compilers/scala/default.nix index 8d27707dff7f..ab8fa942952e 100644 --- a/pkgs/development/compilers/scala/default.nix +++ b/pkgs/development/compilers/scala/default.nix @@ -32,7 +32,6 @@ stdenv.mkDerivation { ''; inherit (bare) meta; -} -// { - inherit bare; + + passthru = { inherit bare; }; }