NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.29k stars 13.54k forks source link

`upgrading 'solaar-1.1.5' to 'solaar-1.1.8'` breaks user profile `error: this derivation has bad 'meta.outputsToInstall' ` #225900

Open brodul opened 1 year ago

brodul commented 1 year ago

Describe the bug

After nix-env -u packages can not be installed or removed.

UPDATE: Turns out that upgrading 'solaar-1.1.5' to 'solaar-1.1.8' breaks the profile.

image

An error error: this derivation has bad 'meta.outputsToInstall' is returned on install or remove.

Steps To Reproduce

I can reproduce this multiple times by reverting to a generation and upgrading with `nix-env -u`. Steps to reproduce the behavior: ```console brodul:Downloads/ $ nix-env --list-generations brodul:Downloads/ $ nix-env --switch-generation 255 switching profile from version 256 to 255 brodul:Downloads/ $ nix-env -i poetry installing 'poetry-1.4.2' building '/nix/store/4zwxcin4ikhmwgdkqy2rwmb4af5ya294-user-environment.drv'... brodul:Downloads/ $ nix-env --list-generations brodul:Downloads/ $ nix-env -u upgrading 'buf-1.13.1' to 'buf-1.17.0' upgrading 'act-0.2.34' to 'act-0.2.43' upgrading 'clickhouse-22.8.5.29' to 'clickhouse-22.8.11.15' upgrading 'velero-1.9.3' to 'velero-1.10.2' upgrading 'tanka-0.23.1' to 'tanka-0.24.0' upgrading 'pinentry-1.2.0' to 'pinentry-1.2.1' [...] building '/nix/store/s9n6024vns905h4rl02j0ap10z1hl1rp-user-environment.drv'... brodul:Downloads/ $ nix-env -i poetry replacing old 'poetry-1.4.2' installing 'poetry-1.4.2' error: this derivation has bad 'meta.outputsToInstall' brodul:Downloads/ $ nix-env --switch-generation 255 switching profile from version 258 to 255 brodul:Downloads/ $ nix-env -i poetry installing 'poetry-1.4.2' brodul:Downloads/ $ nix-env -i poetry replacing old 'poetry-1.4.2' installing 'poetry-1.4.2' brodul:Downloads/ $ nix-env -i helm replacing old 'helm-3.9.0' installing 'helm-3.11.2' building '/nix/store/l2lfpqnnv6hhyqb9a0hcl78fl97vc3rp-user-environment.drv'... ```

UPDATE: I have isolated the issue even more:

  1. I revert to a working generation
  2. Upgrade solaar
  3. nix-env stops working / profile not usable
brodul:scripts/ $ nix-env --switch-generation 255
switching profile from version 521 to 255
brodul:scripts/ $ nix-env -u sops                                                                                                                                              
these 10 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/hin844q7qbzlml9fv9am4n9jrk702kmi-solaar-1.1.5-udev
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
brodul:scripts/ $ nix-env -u poetry                                                                                                                                              [11:50:27]
these 10 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/hin844q7qbzlml9fv9am4n9jrk702kmi-solaar-1.1.5-udev
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
brodul:scripts/ $ nix-env -u solaar                                                                                                                                              [11:50:48]
upgrading 'solaar-1.1.5' to 'solaar-1.1.8'
these 9 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
building '/nix/store/bjfjw1qskamqzd49rkybpb1y2hsjylbn-user-environment.drv'...
brodul:scripts/ $ nix-env -u poetry                                                                                                                                              [11:51:34]
these 9 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
error: this derivation has bad 'meta.outputsToInstall'
brodul:scripts/ $ nix-env -i joe 
installing 'joe-4.6'
error: this derivation has bad 'meta.outputsToInstall'
brodul:scripts/ $ nix-env -e tree
uninstalling 'tree-1.8.0'
error: this derivation has bad 'meta.outputsToInstall'

Expected behavior

Upgrading packages with nix-env -u should not break users profile. Upgrading a package solaar should not break users profile. User should be able to remove and install packages after upgrade

Additional context

Packages version before upgrade ```console brodul:Downloads/ $ nix-env --switch-generation 25 switching profile from version 262 to 255 brodul:Downloads/ $ nix-env -q ``` ```console act-0.2.34 ansible-2.10.0 apache-httpd-2.4.53 appimage-run asciinema-2.1.0 audacity-3.1.3 awscli-1.22.88 beep-1.4.12 bind-9.18.3 binutils-wrapper-2.38 blueman-2.2.4 borgbackup-1.2.0 bsod-0.1 btop-1.2.6 buf-1.13.1 cheese-41.1 circleci-cli-0.1.17142 clickhouse-22.8.5.29 clipmenu-6.2.0 cloc-1.92 cloud-sql-proxy-1.31.2 cmatrix-2.0 consul-1.12.1 cool-retro-term-1.1.1 corebird-1.7.4 cowsay-3.04 docker-compose-2.6.0 doctl-1.72.0 dog-1.7 dsniff-2.4b1 duplicati-2.0.6.3 eagle-9.6.2 elinks-0.15.0 elixir-1.13.4 espeak-1.48.04 evtest-1.35 f3-8.0 ffmpeg-5.0.1 figlet-2.2.5 file-5.41 freecad-0.19.2 fswatch-1.16.0 fzf-0.30.0 gitleaks-8.8.6 go-1.19.2 go-task-3.17.0 golangci-lint-1.46.2 google-cloud-sdk-408.0.1 graphviz-2.50.0 helm-3.9.0 htop-3.2.0 httpie-3.2.1 i3lock-pixeled-1.2.1 iftop-1.0pre4 iio-sensor-proxy-3.0 image_optim-0.31.1 imwheel-1.0.0pre12 inkscape-1.1.2 inotify-tools-3.22.1.0 iotop-0.6 ipcalc-1.0.1 jq-1.6 jsonnet-0.19.1 jsonnet-bundler-0.5.1 k6-0.37.0 k9s-0.25.18 kind-0.14.0 kopia-0.10.7 kubectl-1.23.5 kubectx-0.9.4 kubie-0.16.0 libnotify-0.7.12 librecad-2.2.0-rc2 libxml2-2.9.10 lm-sensors-3.6.0 lnav-0.10.1 lynis-3.0.8 mc-4.8.28 mimic-1.3.0.1 minikube-1.25.2 mplayer-1.4 nethogs-0.8.7 nftables-1.0.2 ngrok-2.3.40 niv-0.2.21 node-_at_webassemblyjs_slash_wast-refmt-1.8.5 nodejs-16.15.0 okular-22.04.1 openscad-2021.01 pandoc-2.17.1.1 parallel-20220322 pdftk-3.3.2 pinentry-1.2.0 popeye-0.10.0 poppler-utils-22.04.0 PortfolioPerformance-0.58.5 postgresql-14.3 protobuf-3.19.4 pup-0.4.0 python3-3.11.0a7 qbittorrent-4.4.3 rclone-1.58.1 recordmydesktop-0.3.8.1-svn602 redis-7.0.5 restic-0.13.0 ruby-3.1.2 salt-3004.1 sbt-1.6.2 scribus-1.5.7 ShellCheck-0.7.0 shutter-0.99.2 skaffold-1.38.0 slack-4.26.1 solaar-1.1.5 sops-3.7.3 spotify-1.1.84.716.gc5f8b819 syncthing-1.20.1 synergy-1.14.1.32 tanka-0.23.1 thunderbird-bin-91.9.1 tig-2.5.5 tlp-1.5.0 tree-1.8.0 twingate-1.0.60 vagrant-2.2.19 vault-1.10.3 velero-1.9.3 vmware-view vscode-1.74.2 websocat-1.9.0 weechat-bin-env-3.5 wireless-tools-30.pre9 wireshark-qt-3.6.3 woeusb-5.2.4 ws-0.2.1 xbacklight-1.2.3 xclip-0.13 xdpyinfo-1.3.2 xflux-2013-09-01 xinput_calibrator-0.7.5 xwininfo-1.1.4 yarn-1.22.18 youtube-dl-2021.12.17 yq-2.14.0 zerotierone-1.8.9 ```
Upgrade ```console brodul:Downloads/ $ nix-env -u ``` ``` console upgrading 'buf-1.13.1' to 'buf-1.17.0' upgrading 'act-0.2.34' to 'act-0.2.43' upgrading 'clickhouse-22.8.5.29' to 'clickhouse-22.8.11.15' upgrading 'velero-1.9.3' to 'velero-1.10.2' upgrading 'tanka-0.23.1' to 'tanka-0.24.0' upgrading 'pinentry-1.2.0' to 'pinentry-1.2.1' upgrading 'redis-7.0.5' to 'redis-7.0.10' upgrading 'solaar-1.1.5' to 'solaar-1.1.8' upgrading 'go-task-3.17.0' to 'go-task-3.22.0' upgrading 'protobuf-3.19.4' to 'protobuf-20220331-git' upgrading 'popeye-0.10.0' to 'popeye-0.11.1' upgrading 'yq-2.14.0' to 'yq-3.1.1' upgrading 'kubie-0.16.0' to 'kubie-0.19.3' upgrading 'k9s-0.25.18' to 'k9s-0.27.3' upgrading 'fzf-0.30.0' to 'fzf-0.39.0' upgrading 'niv-0.2.21' to 'niv-0.2.22' upgrading 'PortfolioPerformance-0.58.5' to 'PortfolioPerformance-0.61.4' upgrading 'graphviz-2.50.0' to 'graphviz-7.1.0' upgrading 'tig-2.5.5' to 'tig-2.5.8' upgrading 'salt-3004.1' to 'salt-3005.1' upgrading 'zerotierone-1.8.9' to 'zerotierone-1.10.3' upgrading 'consul-1.12.1' to 'consul-1.15.2' upgrading 'libnotify-0.7.12' to 'libnotify-0.8.1' upgrading 'kopia-0.10.7' to 'kopia-0.12.1' upgrading 'blueman-2.2.4' to 'blueman-2.3.4' upgrading 'btop-1.2.6' to 'btop-1.2.13' upgrading 'borgbackup-1.2.0' to 'borgbackup-1.2.3' upgrading 'gitleaks-8.8.6' to 'gitleaks-8.16.2' upgrading 'qbittorrent-4.4.3' to 'qbittorrent-4.5.2' upgrading 'cheese-41.1' to 'cheese-43.0' upgrading 'thunderbird-bin-91.9.1' to 'thunderbird-bin-102.8.0' upgrading 'yarn-1.22.18' to 'yarn-1.22.19' upgrading 'kind-0.14.0' to 'kind-0.17.0' upgrading 'vault-1.10.3' to 'vault-1.13.0' upgrading 'bind-9.18.3' to 'bind-9.18.12' upgrading 'scribus-1.5.7' to 'scribus-1.5.8' upgrading 'fswatch-1.16.0' to 'fswatch-1.17.1' upgrading 'vscode-1.74.2' to 'vscode-1.77.1' upgrading 'inotify-tools-3.22.1.0' to 'inotify-tools-3.22.6.0' upgrading 'golangci-lint-1.46.2' to 'golangci-lint-1.52.2' upgrading 'synergy-1.14.1.32' to 'synergy-1.14.5.22' upgrading 'syncthing-1.20.1' to 'syncthing-1.23.4' upgrading 'mc-4.8.28' to 'mc-4.8.29' upgrading 'poppler-utils-22.04.0' to 'poppler-utils-23.02.0' upgrading 'kubectl-1.23.5' to 'kubectl-1.26.3' upgrading 'nftables-1.0.2' to 'nftables-1.0.6' upgrading 'websocat-1.9.0' to 'websocat-1.11.0' upgrading 'freecad-0.19.2' to 'freecad-0.20.2' upgrading 'doctl-1.72.0' to 'doctl-1.91.0' upgrading 'ngrok-2.3.40' to 'ngrok-3.1.1' upgrading 'parallel-20220322' to 'parallel-20230222' upgrading 'minikube-1.25.2' to 'minikube-1.29.0' upgrading 'go-1.19.2' to 'go-1.20.2' upgrading 'slack-4.26.1' to 'slack-4.29.149' upgrading 'wireshark-qt-3.6.3' to 'wireshark-qt-4.0.4' upgrading 'awscli-1.22.88' to 'awscli-1.27.79' upgrading 'postgresql-14.3' to 'postgresql-15.2' upgrading 'inkscape-1.1.2' to 'inkscape-1.2.2' upgrading 'cowsay-3.04' to 'cowsay-3.7.0' upgrading 'cloc-1.92' to 'cloc-1.96' upgrading 'rclone-1.58.1' to 'rclone-1.62.2' upgrading 'elinks-0.15.0' to 'elinks-0.16.0' upgrading 'pandoc-2.17.1.1' to 'pandoc-2.19.2' upgrading 'k6-0.37.0' to 'k6-0.42.0' upgrading 'asciinema-2.1.0' to 'asciinema-2.2.0' upgrading 'restic-0.13.0' to 'restic-0.15.1' upgrading 'circleci-cli-0.1.17142' to 'circleci-cli-0.1.25725' upgrading 'elixir-1.13.4' to 'elixir-1.14.3' upgrading 'docker-compose-2.6.0' to 'docker-compose-2.17.2' upgrading 'apache-httpd-2.4.53' to 'apache-httpd-2.4.56' upgrading 'weechat-bin-env-3.5' to 'weechat-bin-env-3.8' upgrading 'sbt-1.6.2' to 'sbt-1.8.2' upgrading 'nodejs-16.15.0' to 'nodejs-18.15.0' upgrading 'audacity-3.1.3' to 'audacity-3.2.5' upgrading 'ffmpeg-5.0.1' to 'ffmpeg-6.0' upgrading 'python3-3.11.0a7' to 'python3-3.12.0a7' upgrading 'skaffold-1.38.0' to 'skaffold-2.3.0' upgrading 'binutils-wrapper-2.38' to 'binutils-wrapper-2.40' upgrading 'htop-3.2.0' to 'htop-3.2.2' upgrading 'file-5.41' to 'file-5.44' upgrading 'pdftk-3.3.2' to 'pdftk-3.3.3' upgrading 'tree-1.8.0' to 'tree-2.0.4' upgrading 'ipcalc-1.0.1' to 'ipcalc-1.0.2' upgrading 'lnav-0.10.1' to 'lnav-0.11.1' upgrading 'okular-22.04.1' to 'okular-22.12.3' upgrading 'helm-3.9.0' to 'helm-3.11.2' upgrading 'ruby-3.1.2' to 'ruby-3.2.2' these 9 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked): /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31 /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53 /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2 /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08 /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18 /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48 /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1 /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28 ```
Package versions after upgrade ```console brodul:Downloads/ $ nix-env -q ``` ```console act-0.2.43 ansible-2.10.0 apache-httpd-2.4.56 appimage-run asciinema-2.2.0 audacity-3.2.5 awscli-1.27.79 beep-1.4.12 bind-9.18.12 binutils-wrapper-2.40 blueman-2.3.4 borgbackup-1.2.3 bsod-0.1 btop-1.2.13 buf-1.17.0 cheese-43.0 circleci-cli-0.1.25725 clickhouse-22.8.11.15 clipmenu-6.2.0 cloc-1.96 cloud-sql-proxy-1.31.2 cmatrix-2.0 consul-1.15.2 cool-retro-term-1.1.1 corebird-1.7.4 cowsay-3.7.0 docker-compose-2.17.2 doctl-1.91.0 dog-1.7 dsniff-2.4b1 duplicati-2.0.6.3 eagle-9.6.2 elinks-0.16.0 elixir-1.14.3 espeak-1.48.04 evtest-1.35 f3-8.0 ffmpeg-6.0 figlet-2.2.5 file-5.44 freecad-0.20.2 fswatch-1.17.1 fzf-0.39.0 gitleaks-8.16.2 go-1.20.2 go-task-3.22.0 golangci-lint-1.52.2 google-cloud-sdk-408.0.1 graphviz-7.1.0 helm-3.11.2 htop-3.2.2 httpie-3.2.1 i3lock-pixeled-1.2.1 iftop-1.0pre4 iio-sensor-proxy-3.0 image_optim-0.31.1 imwheel-1.0.0pre12 inkscape-1.2.2 inotify-tools-3.22.6.0 iotop-0.6 ipcalc-1.0.2 jq-1.6 jsonnet-0.19.1 jsonnet-bundler-0.5.1 k6-0.42.0 k9s-0.27.3 kind-0.17.0 kopia-0.12.1 kubectl-1.26.3 kubectx-0.9.4 kubie-0.19.3 libnotify-0.8.1 librecad-2.2.0-rc2 libxml2-2.9.10 lm-sensors-3.6.0 lnav-0.11.1 lynis-3.0.8 mc-4.8.29 mimic-1.3.0.1 minikube-1.29.0 mplayer-1.4 nethogs-0.8.7 nftables-1.0.6 ngrok-3.1.1 niv-0.2.22 node-_at_webassemblyjs_slash_wast-refmt-1.8.5 nodejs-18.15.0 okular-22.12.3 openscad-2021.01 pandoc-2.19.2 parallel-20230222 pdftk-3.3.3 pinentry-1.2.1 popeye-0.11.1 poppler-utils-23.02.0 PortfolioPerformance-0.61.4 postgresql-15.2 protobuf-20220331-git pup-0.4.0 python3-3.12.0a7 qbittorrent-4.5.2 rclone-1.62.2 recordmydesktop-0.3.8.1-svn602 redis-7.0.10 restic-0.15.1 ruby-3.2.2 salt-3005.1 sbt-1.8.2 scribus-1.5.8 ShellCheck-0.7.0 shutter-0.99.2 skaffold-2.3.0 slack-4.29.149 solaar-1.1.8 sops-3.7.3 spotify-1.1.84.716.gc5f8b819 syncthing-1.23.4 synergy-1.14.5.22 tanka-0.24.0 thunderbird-bin-102.8.0 tig-2.5.8 tlp-1.5.0 tree-2.0.4 twingate-1.0.60 vagrant-2.2.19 vault-1.13.0 velero-1.10.2 vmware-view vscode-1.77.1 websocat-1.11.0 weechat-bin-env-3.8 wireless-tools-30.pre9 wireshark-qt-4.0.4 woeusb-5.2.4 ws-0.2.1 xbacklight-1.2.3 xclip-0.13 xdpyinfo-1.3.2 xflux-2013-09-01 xinput_calibrator-0.7.5 xwininfo-1.1.4 yarn-1.22.19 youtube-dl-2021.12.17 yq-3.1.1 zerotierone-1.10.3 ```

Metadata

nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'                                                                                                                       
"23.05pre472385.5a156c2e89c"

brodul:Downloads/ $ nix-shell -p nix-info --run "nix-info -m"                                                                                                                                           
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.97, NixOS, 22.11 (Raccoon), 22.11.3639.115a96e2ac1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixos-22.11, nixos-20.03-20.03, nixos-21.05-21.05"`
 - channels(brodul): `"nixpkgs"`
 - nixpkgs: `/home/brodul/.nix-defexpr/channels/nixpkgs`

Similar bugs:
https://github.com/NixOS/nixpkgs/issues/88690 
brodul commented 1 year ago

I am trying to triage if that is a nix issue or a problem in a set of packages.

brodul commented 1 year ago

What I did is iterate trough all my packages with:

for package in $(nix-env -q  | sed -nE "s/(.*)-([0-9].*)/\1/p"); do
    echo "Testing $package ..."
    nix-env -u "$package"
    if [[ $? != 0 ]]; then
        echo "$package is broken"
    fi
done

image

I have reverted to a working profile 255 and isolated the problem:

brodul:scripts/ $ nix-env -u sops                                                                                                                                                
these 10 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/hin844q7qbzlml9fv9am4n9jrk702kmi-solaar-1.1.5-udev
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
brodul:scripts/ $ nix-env -u poetry                                                                                                                                              
these 10 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/hin844q7qbzlml9fv9am4n9jrk702kmi-solaar-1.1.5-udev
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
brodul:scripts/ $ nix-env -u solaar                                                                                                                                              
upgrading 'solaar-1.1.5' to 'solaar-1.1.8'
these 9 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
building '/nix/store/bjfjw1qskamqzd49rkybpb1y2hsjylbn-user-environment.drv'...
brodul:scripts/ $ nix-env -u poetry                                                                                                                                              these 9 paths will be fetched (10.76 MiB download, 57.41 MiB unpacked):
  /nix/store/66hc282zl28zfr8727i681vz23bqwp16-coreutils-8.31
  /nix/store/ainx5scr4w8j3kys185pmlrci44yfgpj-acl-2.2.53
  /nix/store/c27slxiaq4q2gbyzscph45p29b5v227c-ncurses-6.2
  /nix/store/ci7lqy2gfjips0f8l24rdl0nvwmrzf1c-libxml2-2.9.10-py
  /nix/store/dj8z763b819vavwl6pl0ns6cfdxfp700-readline-6.3p08
  /nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18
  /nix/store/n0k4c4jm4ippmz462z5sr8xvzwvlk7fj-attr-2.4.48
  /nix/store/q62slkpdgs7m70hywlpwd8i6lc9g1wr5-gdbm-1.18.1
  /nix/store/ss938m64zp5xacp50hxi8g9vlh864b0b-db-5.3.28
error: this derivation has bad 'meta.outputsToInstall'

I would conclude that upgrading 'solaar-1.1.5' to 'solaar-1.1.8' breaks my users profile.

UPDATE: I have updated issue description.

brodul commented 1 year ago

Removing and installing also breaks my profile/ image

Artturin commented 1 year ago

same issue https://github.com/NixOS/nixpkgs/issues/189555 ?