Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixOS fails to build #14

Open
Floatingjacob opened this issue Jun 22, 2024 · 0 comments
Open

nixOS fails to build #14

Floatingjacob opened this issue Jun 22, 2024 · 0 comments

Comments

@Floatingjacob
Copy link

Floatingjacob commented Jun 22, 2024

i have multiple errors while trying to build wInd3x on nixOS the first one is
error: … while calling the 'derivationStrict' builtin

     at /builtin/derivation.nix:9:12: (source not `available)`

   … while evaluating derivation 'wInd3x'
     whose name attribute is located at /nix/store/rggq6nl695pfznlni9dgnk3b5mipjjrh-nixos-24.05.1695.dd457de7e08c/nixos/pkgs/stdenv/generic/make-derivation.nix:331:7

   … while evaluating attribute 'configurePhase' of derivation 'wInd3x'

     at /nix/store/rggq6nl695pfznlni9dgnk3b5mipjjrh-nixos-24.05.1695.dd457de7e08c/nixos/pkgs/build-support/go/module.nix:175:5:

      174|
      175|     configurePhase = args.configurePhase or (''
         |     ^
      176|       runHook preConfigure

   error: buildGoModule: Expect vendorHash instead of vendorSha256

i fixed that one (i think fixed it) by opening default.nix in the wInd3x main directory and changing vendorSha256 to vendorHash and running nix-build again. after running nix-build again i get a new error

Running phase: installPhase
error: hash mismatch in fixed-output derivation '/nix/store/nq1pja0m1jszl4ijw03rqr0s1b8ryfzi-wInd3x-go-modules.drv':
         specified: sha256-AjmH5oE/u+0R5d40r2zMAauQJTAwqHi24aqUMj2DmzU=
            got:    sha256-pRsFhUl5qn/w6ffSbfO8PamxosekJ7AF9nAeKDOYIew=
error: 1 dependencies of derivation '/nix/store/db6i6ajrnzal724sqdidjmlkwa6fsri5-wInd3x.drv' failed to build

i (again think) i fixed the error by copying what it "got" to vendorHash in default.nix and running the script again.
the third time i run the script after changing default.nix i get

ok      github.com/freemyipod/wInd3x/pkg/efi/compression        0.050s
--- FAIL: TestRepackAll (0.00s)
    mse_test.go:29: Nano 4G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:45629->[::1]:53: read: connection refused
    mse_test.go:29: Nano 5G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:33821->[::1]:53: read: connection refused
    mse_test.go:29: Nano 6G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:47377->[::1]:53: read: connection refused
    mse_test.go:29: Nano 7G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:56075->[::1]:53: read: connection refused
FAIL
FAIL    github.com/freemyipod/wInd3x/pkg/mse    0.004s
FAIL
error: builder for '/nix/store/i2s41i2mqjjwviws2vc6dknmw8fsm2kq-wInd3x.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: checkPhase
       > ok   github.com/freemyipod/wInd3x/pkg/efi/compression        0.050s
       > --- FAIL: TestRepackAll (0.00s)
       >     mse_test.go:29: Nano 4G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:45629->[::1]:53: read: connection refused
       >     mse_test.go:29: Nano 5G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:33821->[::1]:53: read: connection refused
       >     mse_test.go:29: Nano 6G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:47377->[::1]:53: read: connection refused
       >     mse_test.go:29: Nano 7G: could not get firmware: could not download iTunes XML: Get "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version": dial tcp: lookup ax.phobos.apple.com.edgesuite.net on [::1]:53: read udp [::1]:56075->[::1]:53: read: connection refused
       > FAIL
       > FAIL     github.com/freemyipod/wInd3x/pkg/mse    0.004s
       > FAIL
       For full logs, run 'nix-store -l /nix/store/i2s41i2mqjjwviws2vc6dknmw8fsm2kq-wInd3x.drv'.

after running nix-store -l /nix/store/i2s41i2mqjjwviws2vc6dknmw8fsm2kq-wInd3x.drv i got

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/12fbffgvhf3ybnc7vrvi887p8wpqqs4a-wInd3x-main
source root is wInd3x-main
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Building subPackage .
Building subPackage ./pkg/app
Building subPackage ./pkg/cache
Building subPackage ./pkg/cfw
Building subPackage ./pkg/devices
Building subPackage ./pkg/dfu
Building subPackage ./pkg/efi
Building subPackage ./pkg/efi/compression
Building subPackage ./pkg/exploit
Building subPackage ./pkg/exploit/decrypt
Building subPackage ./pkg/exploit/dumpmem
Building subPackage ./pkg/exploit/haxeddfu
Building subPackage ./pkg/image
Building subPackage ./pkg/mse
Building subPackage ./pkg/syscfg
Building subPackage ./pkg/uasm
Building subPackage ./pkg/usbms
@nix { "action": "setPhase", "phase": "checkPhase" }
Running phase: checkPhase
ok      github.com/freemyipod/wInd3x/pkg/efi/compression        0.050s
--- FAIL: TestRepackAll (0.00s)
    mse_test.go:29: Nano 4G: could not get firmware: could not download iTunes >
    mse_test.go:29: Nano 5G: could not get firmware: could not download iTunes >
    mse_test.go:29: Nano 6G: could not get firmware: could not download iTunes >
    mse_test.go:29: Nano 7G: could not get firmware: could not download iTunes >
FAIL
FAIL    github.com/freemyipod/wInd3x/pkg/mse    0.004s
FAIL

so anyways what i am saying is if anyone can help me on this it would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant