MatthewCroughan / NixThePlanet

Run macOS, Windows and more via a single Nix command, or simple nixosModules
MIT License
553 stars 14 forks source link

IOS won't build anymore #15

Closed walseb closed 8 months ago

walseb commented 8 months ago

Hi!

Thanks for this package!

It seems like it won't build anymore since one of its dependencies, python311Packages.vncdo is broken. Here's the error I get when I try to build it:

cached-nix-shell -p python311Packages.vncdo
cached-nix-shell: updating cache
this derivation will be built:
  /nix/store/dqwsax9x66qnsvsg86rqsxzskq4jv4r0-python3.11-vncdo-1.1.0.drv
building '/nix/store/dqwsax9x66qnsvsg86rqsxzskq4jv4r0-python3.11-vncdo-1.1.0.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Running phase: unpackPhase
unpacking source archive /nix/store/3wnkcg3zdqsj7yhcacwi5nzn03xvr2sd-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/vncdotool/rfb.py
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/vncdotool
copying vncdotool/__init__.py -> build/lib/vncdotool
copying vncdotool/api.py -> build/lib/vncdotool
copying vncdotool/client.py -> build/lib/vncdotool
copying vncdotool/command.py -> build/lib/vncdotool
copying vncdotool/loggingproxy.py -> build/lib/vncdotool
copying vncdotool/rfb.py -> build/lib/vncdotool
/nix/store/awv83n0nrhldkp45ly2iz6fjw9ni82vb-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/__init__.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/api.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/client.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/command.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/loggingproxy.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/rfb.py -> build/bdist.linux-x86_64/wheel/vncdotool
running install_egg_info
running egg_info
creating vncdotool.egg-info
writing vncdotool.egg-info/PKG-INFO
writing dependency_links to vncdotool.egg-info/dependency_links.txt
writing entry points to vncdotool.egg-info/entry_points.txt
writing requirements to vncdotool.egg-info/requires.txt
writing top-level names to vncdotool.egg-info/top_level.txt
writing manifest file 'vncdotool.egg-info/SOURCES.txt'
reading manifest file 'vncdotool.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'vncdotool.egg-info/SOURCES.txt'
Copying vncdotool.egg-info to build/bdist.linux-x86_64/wheel/vncdotool-1.1.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/vncdotool-1.1.0.dist-info/WHEEL
creating 'dist/vncdotool-1.1.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'vncdotool/__init__.py'
adding 'vncdotool/api.py'
adding 'vncdotool/client.py'
adding 'vncdotool/command.py'
adding 'vncdotool/loggingproxy.py'
adding 'vncdotool/rfb.py'
adding 'vncdotool-1.1.0.dist-info/LICENSE.txt'
adding 'vncdotool-1.1.0.dist-info/METADATA'
adding 'vncdotool-1.1.0.dist-info/WHEEL'
adding 'vncdotool-1.1.0.dist-info/entry_points.txt'
adding 'vncdotool-1.1.0.dist-info/top_level.txt'
adding 'vncdotool-1.1.0.dist-info/zip-safe'
adding 'vncdotool-1.1.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed vncdotool-1.1.0-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0
checking for references to /build/ in /nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0...
patching script interpreter paths in /nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0
stripping (with command strip and flags -S -p) in  /nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0/lib /nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/m1fi1p44ixm95niacd91lbqyw60i3p7q-python3.11-vncdo-1.1.0-dist
checking for references to /build/ in /nix/store/m1fi1p44ixm95niacd91lbqyw60i3p7q-python3.11-vncdo-1.1.0-dist...
patching script interpreter paths in /nix/store/m1fi1p44ixm95niacd91lbqyw60i3p7q-python3.11-vncdo-1.1.0-dist
Rewriting #!/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11 to #!/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6
wrapping `/nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0/bin/vnclog'...
Rewriting #!/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11 to #!/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6
wrapping `/nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0/bin/vncdo'...
Rewriting #!/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11 to #!/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6
wrapping `/nix/store/dkskxljfa6m7lklz4rq3cw10zanxkwgb-python3.11-vncdo-1.1.0/bin/vncdotool'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
Running phase: pythonRemoveBinBytecodePhase
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Running phase: setuptoolsCheckPhase
Executing setuptoolsCheckPhase
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
/nix/store/awv83n0nrhldkp45ly2iz6fjw9ni82vb-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/command/test.py:193: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  ir_d = dist.fetch_build_eggs(dist.install_requires)
/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11: No module named pip
error: Command '['/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/build/tmpvvg3pqwl', '--quiet', 'pycryptodomex']' returned non-zero exit status 1.
error: builder for '/nix/store/dqwsax9x66qnsvsg86rqsxzskq4jv4r0-python3.11-vncdo-1.1.0.drv' failed with exit code 1
cached-nix-shell: nix-shell: exit status: 100

I'm running nixpkgs/nixos-23.11 at rev 56911ef3403a9318b7621ce745f5452fb9ef6867.

Here's the error message I get when installing this package in particular:

building '/nix/store/9mr8clmg6zznlznpidys54mr5ral4kc0-mouseJiggler.drv'...
building '/nix/store/c0l2ppdci7mxw5knj4shxfwsbbxmysky-InstallAssistant.iso.drv'...
building '/nix/store/pihya5fnp03nvlzqa1g5h3vnv14176fi-powerOffWrapper.drv'...
building '/nix/store/dqwsax9x66qnsvsg86rqsxzskq4jv4r0-python3.11-vncdo-1.1.0.drv'...
error: builder for '/nix/store/dqwsax9x66qnsvsg86rqsxzskq4jv4r0-python3.11-vncdo-1.1.0.drv' failed with exit code 1;
       last 10 log lines:
       >
       >         ********************************************************************************
       >         Requirements should be satisfied by a PEP 517 installer.
       >         If you are using pip, you can try `pip install --use-pep517`.
       >         ********************************************************************************
       >
       > !!
       >   ir_d = dist.fetch_build_eggs(dist.install_requires)
       > /nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11: No module named pip
       > error: Command '['/nix/store/p1zbyfrpj3hq50mxh5hmxl3kqpa2b1am-python3-3.11.6/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/build/tmptog_0w4b', '--quiet', 'pycryptodomex']' returned non-zero exit status 1.
       For full logs, run 'nix log /nix/store/dqwsax9x66qnsvsg86rqsxzskq4jv4r0-python3.11-vncdo-1.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/lhfka4ngcmjv1dlvhfrqdz97y0gh4fwv-tesseractScript.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c43i0zyfxgsl7vbn3h4x3608ww3ivx58-expect.sh.drv' failed to build
building '/nix/store/wk1q2kfc076ibvbaml7jik1ps4vb772f-qemu-host-cpu-only-8.1.4.drv'...
error: 1 dependencies of derivation '/nix/store/65p0m6c4myqvvn3a4inzgfxzxcn4zca5-mac_hdd_ng.qcow2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x4lki9kwrkwn4nrkbsl6g44hpq50vqh0-run-macOS.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vwhip8j46dssjh66bmw04g7psn8mk2h3-unit-macos-ventura.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ax2182jx03fxfaagvrrjgi0n3rabk98k-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jpf8384bzkv02j5wn0pygpiw8zyd98g3-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wbxg7zp76fyv2zbwd238sdmiwhvjb8qr-nixos-system-nixos-23.11.20240129.f4a8d6d.drv' failed to build
walseb commented 8 months ago

I suppose the solution is to simply use the pins in the flake inside this repo until this issue is fixed upstream. Thank god for flakes. I will close this for now.

walseb commented 8 months ago

With the nixpkgs pins copied from this repo's lockfile, it now works perfectly. Amazing experience of a normally frustrating process. Thanks for so much for making this!