Open ghost opened 6 years ago
Update: see below.
Pretty much the same situation here. Just tried the trivial example from the NixOps manual and got this:
error: cannot add path '/nix/store/a1zbfqipa1sl4bnnayla17z5p48kxiza-audit-disable' because it lacks a hash
builder for '/nix/store/j8ifh77jywc3s79gn5xkb6wr1jh68l2f-audit-disable.drv' failed with exit code 1
cannot build derivation '/nix/store/nmb3j2wy64z4g2y62vq8srq4b3b14aml-unit-audit.service.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/63slpmvix0yzc3qziy9qf2k517ahg7j2-system-units.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/2cvfh1msz8xhzvp877yzjzxlp1jmfkl2-etc.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jmq6xd1ypfk48x0621yvsvn0qchndbji-nixos-system-webserver-19.03pre158151.69522a0acf8.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6i5cw377i1rbdxii9c6x725m9fkpjnvg-nixops-machines.drv': 1 dependencies couldn't be built
error: build of '/nix/store/6i5cw377i1rbdxii9c6x725m9fkpjnvg-nixops-machines.drv' failed
error: unable to build all machine configurations
I am running the same version of nix, nixops and VirtualBox, but a slightly more recent version of macOS:
ProductName: Mac OS X
ProductVersion: 10.14.1
BuildVersion: 18B75
How can we fix this? Thanks!
Update: See here: https://discourse.nixos.org/t/newbie-question-cant-get-trivial-example-of-nixops-to-work-on-my-mac/1125
trivial.nix
trivial-vbox.nix
after creating the deploy with the files above, when i run
$ nixops deploy -d trivial
it fails to buld because nix can't find some hashesos version:
nix version:
nixops version:
virtualbox version