Unverified Commit fec2c46c authored by K900's avatar K900 Committed by GitHub
Browse files

Revert "nodejs: provide fallback passthru values on the symlink variant" (#512657)

parents 04c36bd1 7e34321f
Loading
Loading
Loading
Loading
+2 −37
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  nodejs-slim,
  symlinkJoin,
}:
(symlinkJoin {
symlinkJoin {
  pname = "nodejs";
  inherit (nodejs-slim) version passthru meta;
  paths = [
@@ -11,39 +11,4 @@
    nodejs-slim.npm
  ]
  ++ lib.optional (builtins.hasAttr "corepack" nodejs-slim) nodejs-slim.corepack;
}).overrideAttrs
  (nodejs: {
    passthru =
      (builtins.listToAttrs (
        map
          (name: {
            inherit name;
            value = lib.warn "Use nodejs-slim.${name} instead of nodejs.${name}" nodejs-slim.${name};
          })
          (
            builtins.filter (
              name:
              !lib.strings.hasPrefix "__" name
              && !(builtins.elem name [
                "override"
                "overrideAttrs"
                "overrideDerivation"
                "outputs"
                "system"
                "type"

                # Filter out arguments of `getOutput`
                "bin"
                "dev"
                "include"
                "lib"
                "man"
                "out"
                "static"
              ])
              && !(builtins.hasAttr name nodejs)
            ) (builtins.attrNames nodejs-slim)
          )
      ))
      // nodejs.passthru;
  })
}