NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.44k stars 12.93k forks source link

Build failure: xdg-utils with mimiSupport #316399

Open mfsch opened 1 month ago

mfsch commented 1 month ago

Enabling support for mimi in xdg-open with xdg_utils.override { mimiSupport = true; } no longer works in NixOS 24.05. This was already noted in the PR comments of the version upgrade but apparently didn’t get fixed.

Steps To Reproduce

Steps to reproduce the behavior:

  1. add xdg_utils.override { mimiSupport = true; } to environment.systemPackages on NixOS 24.05
  2. rebuild NixOS

Build log

[resholve context] : invoking resholve with PWD=/nix/store/10j4gmn6qfgbjxl1a7759yrfillah0w4-xdg-utils-1.2.1
[resholve context] RESHOLVE_LORE=/nix/store/3x9lcvavc9j5la9yiz0yz1r17kyy8a4v-more-binlore
[resholve context] RESHOLVE_EXECER=cannot:/nix/store/10j4gmn6qfgbjxl1a7759yrfillah0w4-xdg-utils-1.2.1/bin/xdg-mime
[resholve context] RESHOLVE_FAKE='external:'\''explorer.exe'\'';'\''gnome-default-applications-properties'\'';'\''kde-config'\'';'\''xprop'\'';'\''cygstart'\'';'\''dde-open'\'';'\''enlightenment_open'\'';'\''exo-open'\'';'\''gio'\'';'\''gnome-open'\'';'\''gvfs-open'\'';'\''kde-open'\'';'\''kfmclient'\'';'\''mate-open'\'';'\''mimeopen'\'';'\''open'\'';'\''pcmanfm'\'';'\''qtxdg-mat'\'';'\''run-mailcap'\'';'\''rundll32.exe'\'';'\''wslpath'\'''
[resholve context] RESHOLVE_FIX='$printf:'\''printf'\'''
[resholve context] RESHOLVE_INPUTS=/nix/store/bnipzdfv788l7yvgn7k7s7gp76sd1zpz-dbus-1.14.10/bin:/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin:/nix/store/28gpmx3z6ss3znd7fhmrzmvk3x5lnfbk-gnugrep-3.11/bin:/nix/store/5zjms21vpxlkbc0qyl5pmj2sidfmzmd7-gnused-4.9/bin:/nix/store/snf25r1v9f4y2hw8mk65sjn07z2nfa6m-net-tools-2.10/bin:/nix/store/3xmijza6nscnn52jry8fw2sw2nzsl9am-glib-2.80.2-bin/bin:/nix/store/10j4gmn6qfgbjxl1a7759yrfillah0w4-xdg-utils-1.2.1/bin
[resholve context] RESHOLVE_INTERPRETER=/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
[resholve context] RESHOLVE_KEEP='$KDE_SESSION_VERSION $browser env:$command'
[resholve context] /nix/store/lh1njl5y8blxindlx274x3s8w5xhnq9k-resholve-0.10.5/bin/resholve --overwrite bin/xdg-open
        awk -F '[= ]' '$1 == "Exec" {print $2; exit}'
        ^~~
/nix/store/10j4gmn6qfgbjxl1a7759yrfillah0w4-xdg-utils-1.2.1/bin/xdg-open:15: Couldn't resolve command 'awk'
/nix/store/xfhkjnpqjwlf6hlk1ysmq3aaq80f3bjj-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/zvz189370akdh9am02ncc1j3b0390kjm-xdg-utils-1.2.1.drv' failed with exit code 3

Notify maintainers

@K900 ?

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.8.11, NixOS, 24.05 (Uakari), 24.05.675.805a384895c6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

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

K900 commented 3 weeks ago

Maybe we should just rip it out then.