NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.94k stars 13.96k forks source link

Build failure: `node-env` #350518

Closed griffi-gh closed 2 hours ago

griffi-gh commented 3 hours ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build any package that depends on node-env

Build log

       … from call site
         at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/development/node-packages/node-env.nix:7:40:
            6|   # Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
            7|   utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;
             |                                        ^
            8|

======== SNIP ========

      … while calling the 'throw' builtin
         at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/top-level/aliases.nix:1677:15:
         1676|   util-linuxCurses = util-linux; # Added 2022-04-12
         1677|   utillinux = throw "'utillinux' has been renamed to/replaced by 'util-linux'"; # Converted to throw 2024-10-17
             |               ^
         1678|

       error: 'utillinux' has been renamed to/replaced by 'util-linux'

Full log from nixos-rebuild with --show-trace: https://gist.github.com/griffi-gh/76ba31b361f14a215c2c0c49c57c1b1e

Additional context

In my case the offending dependency chain was: apostrophe -> mathjax -> node-env

And i had to remove apostrophe for my system to build

Specifically this line's failing:

  # Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
  utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;

Notify maintainers

N/A

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.4, NixOS, 24.11 (Vicuna), 24.11.20241020.1997e4a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.25.0pre20240920_ca3fc169`
 - nixpkgs: `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source`

Add a :+1: reaction to issues you find important.

kjeremy commented 2 hours ago

Fixed by #349783