I want to know which part of my Home Manager configuration requires pyopenssl
which currently has some issue https://github.com/NixOS/nixpkgs/issues/175875
I can’t build my current HM config because of the above mentioned issue, so I tried taking the latest generation and…
$ nix why-depends /nix/store/vn406wg5p62m9cp9ljwh0kqk2zs44a6l-home-manager-generation nixpkgs#python310Packages.pyopenssl
'/nix/store/vn406wg5p62m9cp9ljwh0kqk2zs44a6l-home-manager-generation' does not depend on '/nix/store/wwy5jhcykcdv13a9b9rs0zbsf20np1fg-python3.10-pyopenssl-22.0.0'
It tried it with python39Packages.pyopenssl
but same result. I find it strange that nothing in my HM generation would depend on either of these packages so clearly I’m doing something wrong here.
Or maybe I can somehow tell home-manager --some-cool-flag
to show me a tree of dependencies for the broken package? --show-trace
doesn’t do that and simply going by the order in which packages are built seems like a rather roundabout way of achieving this.
But more context
$ home-manager build --flake .#work-m1 --keep-failed --impure
building '/nix/store/b3a57gh0h3b15vk59v1x194ngk6w8gmx-hm_nvimafterftpluginjavascript.vim.drv'...
building '/nix/store/17lsimxb5xhb6wxpd8yx9g21jy4s8fdk-hm_nvimafterftplugintypescript.vim.drv'...
building '/nix/store/kv0206xi6y27r4f30rhni1z0vm050f88-man-pages.drv'...
building '/nix/store/ajig7ihww1kql7bfz7y4ixpfqibvq392-python3-3.10.5-env.drv'...
building '/nix/store/r1mfk1jjr9d8crd3gs7p8fi6jb4n3db7-man-pages-fish-completions.drv'...
building '/nix/store/x3gcky3i6c5iw6w3dmxd4cg32zf75y9h-python3-3.10.5-env.drv'...
building '/nix/store/z3sdhqlw7rvya73az185xy4572xzap5r-python3.10-awscrt-0.13.11.drv'...
building '/nix/store/5p6pib26psf832ydlz9sw4rknf9hwagv-python3.10-jmespath-0.10.0.drv'...
building '/nix/store/idinknph0kjppswdzinm2ccvwyx4sjcf-python3.10-pyopenssl-22.0.0.drv'...
building '/nix/store/8l2vz7ij8z1qvqppliis7kbqllf0fhlp-python3.10-skia-pathops-0.7.2.drv'...
note: keeping build directory '/private/tmp/nix-build-python3.10-skia-pathops-0.7.2.drv-0'
...
I then took the derivation it’s currently trying to build:
$ NIXPKGS_ALLOW_BROKEN=1 nix why-depends --impure /nix/store/mph0jkk74v7jmcpgnay12v5v0jr32ma0-home-manager-generation.drv nixpkgs#python310Packages.pyopenssl
building '/nix/store/5rimhv0v8c0df72brwqnvd0xhnw6xdn8-vscode-keybindings.drv'...
building '/nix/store/8l2vz7ij8z1qvqppliis7kbqllf0fhlp-python3.10-skia-pathops-0.7.2.drv'...
builder for '/nix/store/8l2vz7ij8z1qvqppliis7kbqllf0fhlp-python3.10-skia-pathops-0.7.2.drv' failed with exit code 1; last 10 log lines:
self.build_extension(ext)
File "setup.py", line 193, in build_extension
libraries=self.get_libraries(ext),
File "setup.py", line 210, in get_libraries
library_dir = self._library_builders[library](self.build_temp)
File "setup.py", line 279, in build_skia
subprocess.run(build_cmd, check=True, env=env)
File "/nix/store/6a94sw6yyc412y3a0qjnjdyljx3p1b7n-python3-3.10.5/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/6a94sw6yyc412y3a0qjnjdyljx3p1b7n-python3-3.10.5/bin/python3.10', 'src/cpp/skia-builder/build_skia.py', '--no-fetch-gn', '--no-virtualenv', '--gn-path', '/nix/store/g55whagjlih3zzpsd23i0gp5ysmjkifi-gn-unstable-2020-03-09/bin/gn', 'build/temp.macosx-11.0-arm64-3.10/src/cpp/skia-builder/skia', '--no-sync-deps']' returned non-zero exit status 1.
cannot build derivation '/nix/store/2jqjdvawbi8k76r4h0d89jspkfr8yrvy-python3.10-fonttools-4.33.3.drv': 1 dependencies couldn't be built
building '/nix/store/zwwkj80ynamf3k2g5zg7fawqzpyhwv07-python3.10-twisted-22.4.0.drv'...
cannot build derivation '/nix/store/sp98zawf2g9b0ylbhbyq6kn0ykrdjvq8-liberation-fonts-2.1.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hgwy4qi29r1433crbd7g5bixr6ixdynx-home-manager-fonts.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6pn4mcxrwvifjb2phx8948fmfgf4w2yg-home-manager-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7iy25rr5ig27adqqm5wfdczk7p6z9460-liberation-fonts-2.1.0-fish-completions.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/mph0jkk74v7jmcpgnay12v5v0jr32ma0-home-manager-generation.drv': 1 dependencies couldn't be built
error: build of '/nix/store/mph0jkk74v7jmcpgnay12v5v0jr32ma0-home-manager-generation.drv' failed
So I guess I now at least see a narrowed list of dependencies and from this I gather:
liberation-fonts -> twisted